
An ENS IPFS contenthash is the record on your .eth name that points to a website stored on IPFS. You pin the site folder, encode its root CID, and save it in one transaction, after which yourname.eth.limo loads the site.
TL;DR:
ipfs:// value is the bytes e3 01 plus the CID version, codec and hash; I encoded a real folder root to 38 bytesipfs:// record needs a new transaction per release, while an ipns:// record is set once and updated through IPNSA contenthash is a field on an ENS resolver contract that maps your name to an address on a content-addressed network. ENSIP-7 defines it as a replacement for the older content and multihash fields, and a resolver advertises support by returning true for interface ID 0xbc1c58d1.
ENS hosts nothing, and the ENS support guide says it only points to the site. Your files stay on IPFS, and the record tells browsers and gateways where to look. DNSLink does the same job with a TXT record in a DNS zone, while ENS keeps the pointer on Ethereum, so every change costs you a transaction.
Per ENSIP-7, the stored value is a multicodec: a protocol code written as an unsigned varint, followed by the address bytes. For IPFS the protocol code is 0xe3, and the address is a v1 CID without its base prefix. So you store the CID version, its content codec, and its multihash.
On 2026-11-09 I computed the folder root of a one file site, index.html. I used the ipfs-unixfs-importer npm package, because this machine has no IPFS binary, and it builds UnixFS directories the way IPFS tools do.
$ npm install ipfs-unixfs-importer blockstore-core
$ node build.mjs
site/index.html bafkreihdltfuaupol5nhhraxqibckuij2zrlwtnhhp4lqwfyjxm2fg7n54
root bafybeifblb2m7r7wvu3n4xmsn3ph44krf4asvilh3vaeeyfi4wjyykaqbe
The folder root (bafybei...) differs from the file CID (bafkrei...), and the contenthash must hold the folder root because a gateway needs a directory to find index.html. I encoded that root with @ensdomains/content-hash 3.2.0.
import { encode, decode, getCodec } from '@ensdomains/content-hash'
const root = 'bafybeifblb2m7r7wvu3n4xmsn3ph44krf4asvilh3vaeeyfi4wjyykaqbe'
const hex = encode('ipfs', root)
console.log('0x' + hex)
console.log(getCodec(hex), decode(hex))
0xe30101701220a15874cfc7f6ad36de5d926ede7e71512f012aa167dd404260a8e5938c281009
ipfs bafybeifblb2m7r7wvu3n4xmsn3ph44krf4asvilh3vaeeyfi4wjyykaqbe
The result is 38 bytes. The prefix e3 01 is 0xe3 as a two byte varint, 01 marks CIDv1, 70 is dag-pb, and 12 20 says sha2-256 with a 32 byte digest. Python rebuilt the same hex from the base32 CID. If these fields are new to you, what a CID is and how it breaks down covers each one.

You need a wallet that owns the name or holds the role to set its content hash, plus a little ETH for gas. These steps follow the ENS support guide, and the pin part matches hosting a static website on IPFS.
index.html at the top of one folder.ipfs:// plus your CID into Content hash.ENS support notes that the ENS App edits only names upgraded to ENSv2. ENS Explorer sets the same record under Records, then Edit records, with the Contenthash type.
You can check the record without a browser, because the eth.limo docs show a DNS-over-HTTPS endpoint that returns the decoded value, which reads dnslink=/ipfs/ plus your CID for an IPFS site. I queried it for ens.eth, which stores a Swarm address.
$ curl -s 'https://dns.eth.limo/dns-query?name=ens.eth' -H 'accept: application/dns-json'
{"Status":"0","TC":false,"Question":[{"name":"ens.eth","type":16}],"Answer":[{"name":"ens.eth","data":"dnslink=/bzz/13c1ff15738acbb865045e0c10d6f5d77e33796068865358585809565cbfe020","type":16,"ttl":300}]}
With an ipfs:// link, each version of your site has its own address, so you save the latest one. An ipns:// link stays the same while you change what it points to.
This is the simplest record. The CID fixes the exact bytes of your site, so anyone can check them against the hash, and each past record names a specific version. The price is one ENS transaction for every release.
You set the record once, then publish signed IPNS records that point the name at each new folder root. That costs no ENS gas but brings its own upkeep. The IPFS docs say DHT records expire after 48 hours and Kubo republishes every 4 hours by default. Gateway resolution of an IPNS name is also trusted, and how IPNS names point to changing content covers the record format, validity and TTL.
I generated a throwaway Ed25519 key and encoded its IPNS name the same way:
ipns name : k51qzi5uqu5diiarqsxwrnnv8zi4a6bqf75klcqk8qkf2g8rrpjfc2cknuu1v3
ipns encode : 0xe50101720024080112205d4b7aba8445fde683419679d2bafd65237e1e97c7184950dedb78479b353eef
getCodec : ipns

I measured it instead of guessing. Through a public Ethereum RPC, I pulled ContenthashChanged logs from the ENS Public Resolver (0xF29100983E058B709F3D539b0c765937B804AC15, per the ENS deployments page) in the 10,000 blocks before block 26,376,642. Twelve direct setContenthash calls in that range used between 44,254 and 50,103 gas.
At 1 gwei, 46,835 gas is 0.000047 ETH, though gas prices in that sample ran from 0.03 to 4.04 gwei. I did not separate first writes from overwrites.
Brave and Opera resolve .eth names directly, and the MetaMask extension can too. The ENS docs say Chrome, Firefox and Safari do not support decentralized sites natively, a split the browser support guide for ipfs:// links also covers.
The other route is a gateway: typing yourname.eth.limo in any browser sends the request to eth.limo, which reads your contenthash and loads the site. The ENS docs also list eth.link and eth.sucks, and note that inbrowser.link verifies content client-side. With the others you trust the gateway, a point how IPFS verifies content without trusting the gateway unpacks. For the IPFS half of the path, see how an IPFS gateway resolves a request.
A single file CID serves that file only. Your site needs the directory CID that lists index.html and the assets next to it, as in the build output above.
ENS stores the address, not the bytes, so if nothing keeps the folder available the record still resolves and the page still fails. ENS support says to check your files are still pinned when a site does not load.
ENSIP-7 stores v1 CIDs, so a Qm... address is converted when you save it. I encoded a v0 CID from the package README and decoded it again:
CIDv0 in : QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG
CIDv0 encode: 0xe301017012209d6c2be50f706953479ab9df2ce3edca90b68053c00b3004b7f0accbe1e8eedf
CIDv0 decode: bafybeie5nqv6kd3qnfjupgvz34woh3oksc3iau6abmyajn7qvtf6d2ho34
The hash is the same, but the text you read back is the base32 v1 form, so share that form.
AIOZ Pin gives you the pinned folder and its CID. The docs describe a "Pin Files or Directory" endpoint where cid_version sets the CID version and wrap_with_directory wraps the uploaded file in a directory. The response carries cid, root_hash and is_dir, and the SDK docs add that the pinning CLI can pin a whole directory. These commands are quoted from the docs and were not run, since they need real keys:
# Not run: from the AIOZ Pin docs (pinning API and pinning CLI)
curl --location --request POST 'https://api.aiozpin.network/api/pinning/' \
--header 'pinning_api_key: KEY' \
--header 'pinning_secret_key: SECRET' \
--form 'file=@"/test.png"'
pinning login --key "your_key" --secret "your_secret"
pinning pin --file ../some/where
Pin your build folder, read the returned CID, and check is_dir with Get Pin Details by pinID before you paste ipfs:// plus that CID into Content hash. If you already hold the CID, pinning by CID without re-uploading covers the docs' pinByHash route.
cid or root_hash is the folder rootNext step: read the AIOZ Pin docs on pinning.
What is an ENS contenthash? A resolver field, defined in ENSIP-7, that maps an ENS name to content on a network such as IPFS, Swarm or Arweave.
Do I need to update the contenthash after every site change? With an ipfs:// record you do, because each version has a new CID, while an ipns:// record only needs a new IPNS record published.
Can I use a CIDv0 starting with Qm? You can paste one, but ENSIP-7 stores v1 CIDs, so it reads back as a bafy address.
How much gas does setting a contenthash use? Twelve direct calls I measured used 44,254 to 50,103 gas, priced at that day's network rate.
Which browsers open .eth sites? Brave and Opera open them directly, and any browser can use yourname.eth.limo.

An ENS IPFS contenthash points your .eth name at a site on IPFS. See the byte format, a real encoding, ipfs vs ipns records, gas used, and common mistakes.

ERC-721 metadata JSON explained: the three fields EIP-721 defines, OpenSea attributes and animation_url, ipfs:// image links, and folder CIDs for collections.

Merkle DAG vs Merkle tree explained: a tree gives each node one parent and short proofs, while the DAG IPFS uses shares blocks, carries data and links by CID.

IPNI is the IPFS network indexer behind cid.contact. See how index providers publish signed advertisement chains and how one HTTP query finds providers.

On-chain vs off-chain NFT metadata: what the contract stores, what lives on IPFS or a web server, what each costs in gas, and how to check any token yourself.

A Kademlia DHT finds peers by XOR distance. See how k-buckets, k = 20 and iterative lookups let IPFS locate who holds a CID, and how to watch it on Kubo.