Pointing (.eth domain) Ethereum Domain from ENS to a Website


    About your question, it’s is possible to link a website with the Ethereum ENS domain if you link the web content with your .eth domain. You can do it with IPFS or Swarm but in this case I’m going to focus on Swarm, so:

    About Swarm

    From the Swarm docs:

    By registering a name and setting it to resolve to the content hash of the root manifest of your site, users can access your site via a URL such as bzz://theswarm.eth/.

    Currently The bzz scheme is not supported in major browsers such as Chrome, Firefox or Safari. If you want to access the bzz scheme through these browsers, currently you have to either use an HTTP gateway, such as or use a browser which supports the bzz scheme, such as Mist

    About ENS

    From the ENS docs:

    contenthash is used to store IPFS and Swarm content hashes, which permit resolving ENS addresses to distributed content (eg, websites) hosted on these distributed networks.

    • With Geth:

    Using the function setContenthash:

    function setContenthash(bytes32 node, bytes calldata hash) external;


    node: namehash("yourdomain.eth") if you do it manually with a client like Geth or yourdomain.eth if you use ENS manager.
    hash: e.g. the Swarm or IPFS hash of the content you’re referring

    Once you own the eth domain and doing some steps like setting the resolver:

    publicResolver.setContenthash(namehash("yourdomain.eth"), "hashOfYourContent", {from: eth.coinbase})
    • With ENS Manager (used Rinkeby testnet):

    enter image description here

    Introduce your IPFS (or Swarm) hash and you will see the following:

    enter image description here


    I’ve found the following tutorial that will illustrate more easily how to do what you ask with IPFS.

    Tutorial about hosting a Dapp using IPFS and ENS


    Then you can use the Swarm gateway and browse to your web like that:

    You can try (probably gives error but if you reload it will work):

    enter image description here

    For your interest, you can test all the process using .test ENS names in a testnet like Ropsten or Rinkeby to see how it works. You can read more about here.

    default avatar male
    JAC is the Founder of JAC9JA, SEO Consultant and has been in the cryptocurrency and blockchain space for just over three years. Fascinated by the community and everything that blockchain has to offer, JAC dedicated himself to creating content and contributing back to the industry.

    Latest articles


    Related articles

    Leave a reply

    Please enter your comment!
    Please enter your name here