How to resolve my ens domain name to my server ip address?

For example, create an HTML file like this:

<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Location" content="https://yourlocationhere" />
		<meta http-equiv="refresh" content="0; URL=https://yourlocationhere" />
	</head>
	<body/>
</html>

Then upload it to IPFS. Pinata has a free tier you can use: https://www.pinata.cloud/

Once it’s uploaded to IPFS you should have a Content ID like

QmaZCJGQQd1CwUS7Xu5qf9v17vpb1JmcRrMBhGDF4i4Ujw

Or

bafybeifvqlxduvcdaaw6dmcertu76eh4mvg4ehpugrsr4ch46rpyw2u75y

Then in the ENS manager app, set your content record to the IPFS URL, like:

ipfs://QmaZCJGQQd1CwUS7Xu5qf9v17vpb1JmcRrMBhGDF4i4Ujw

Or

ipfs://bafybeifvqlxduvcdaaw6dmcertu76eh4mvg4ehpugrsr4ch46rpyw2u75y

Now when someone visits your .eth name in a browser, they’ll be redirected to whatever URL you put in that HTML file.

2 Likes