
DNSLink is a way to point a regular domain name at IPFS content using one DNS TXT record. You add a record at _dnslink.yourdomain whose value is dnslink=/ipfs/ plus a CID, or an IPNS name. You get a stable, readable address without managing keys.
TL;DR:
TXT record at _dnslink.<domain>, holding a value like dnslink=/ipfs/<CID>/ipns/example.org looks up that TXT record and follows it, using DNS instead of the IPFS DHTUpdated Oct 29, 2026: added a DNSLink vs IPNS comparison table, a section on when to use each, a live DNS lookup showing a delegated _dnslink record, a labelled diagram, and a closing section checked against the AIOZ Pin docs.
A CID is precise but not memorable. Nobody types bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi into a browser on purpose, and every new version of your site gets a new one.
IPNS, the IPFS naming system, fixes the "new CID every update" part with a name derived from a key. But that name is another long string, such as k51qzi5uqu5dk..., and your visitors won't recognize it as yours. DNSLink closes the last gap with infrastructure that already exists everywhere: the domain name system.
DNSLink stores the mapping in a TXT record on a name prefixed with _dnslink. The value points to an IPFS path, an IPNS name, or even another DNSLink. The basic form looks like this:
_dnslink.example.org TXT "dnslink=/ipfs/bafybeifld3uybj6azujisdnxu6cm7mombldpbt3au4g33nwnqx7dsgjrta"
When a node or gateway resolves /ipns/example.org, it looks up that TXT record and follows the value to the content. DNSLink addresses use the /ipns/ prefix whether the target is a CID or an IPNS name, with a DNS name where the key hash would go. Paths carry through too, so /ipns/example.org/media/ resolves to the media folder under the CID.
The _dnslink prefix has a practical benefit beyond tidiness. The IPFS docs note that it lets you hand control of the DNSLink record to a third party, such as a deploy pipeline, without giving away your whole DNS zone. The IPFS docs site does exactly that. We ran this lookup on 2026-10-29:
$ dig +noall +answer TXT _dnslink.docs.ipfs.tech
_dnslink.docs.ipfs.tech. 3600 IN CNAME _dnslink.docs-ipfs-tech.dnslinks.ipshipyard.tech.
_dnslink.docs-ipfs-tech.dnslinks.ipshipyard.tech. 300 IN TXT "dnslink=/ipfs/bafybeier6ud42ptljtfaxrdlknktw54b7ohfpg5h33mosxpxjndxs7xzvm"
The _dnslink name is a CNAME into a separate zone, and the TXT record there holds the current CID with a 300-second TTL. Each deploy only has to update that one delegated record.

Both give you one stable address for content that changes. The difference is who you have to trust. An IPNS name is self-certifying: the record carries the public key and a signature, so anyone can check that the key holder signed it. A DNSLink record is ordinary DNS, so whoever controls the zone controls where the name points, just as they control its A and MX records.
| DNSLink | IPNS | |
|---|---|---|
| What the name looks like | Your domain, e.g. /ipns/example.org | A key-derived CID, e.g. /ipns/k51qzi5uqu5d... |
| Who controls it | Whoever controls the DNS zone | Whoever holds the private key |
| Can a resolver verify it? | No, it trusts DNS | Yes, the record is signed |
| How updates spread | DNS, at the record's TTL | DHT (default) or PubSub |
| Upkeep | Keep the domain registered | Republish the record; DHT records expire after 48 hours |
| Speed | The IPFS docs call it much faster than IPNS | DHT lookups can be slow |
Two details from the IPFS docs matter in practice. First, Kubo republishes IPNS records to the DHT every 4 hours by default, because DHT records expire after 48 hours whatever their validity says. Second, when a public gateway resolves an IPNS name for you, you are trusting that gateway, since you can't check the signature yourself.
Pick by who your readers are and who could take the name from you:
The IPFS custom domains guide gives a related rule of thumb for websites. In most cases, you want DNSLink to signal your site's CID even if you also serve the site over a normal custom domain. That way, anyone running a local node, or using an in-browser gateway such as inbrowser.link, can still load your site by CID and verify it.
If you combine the two, line up the TTLs. The IPNS docs warn that the TXT record at _dnslink has its own DNS TTL on top of the IPNS record's TTL. Both affect caching, so a long value on either side slows down how fast your updates show up.
Setting up DNSLink is a DNS task, not an IPFS one. Create a TXT record at _dnslink.<yourdomain>, or at _dnslink.<subdomain> for a subdomain. Set its value to dnslink=/ipfs/<CID> or dnslink=/ipns/<name> through whatever DNS panel your registrar or DNS host already gives you.
Changes then spread at normal DNS speed, set by the record's TTL. If a CI pipeline updates the record on every deploy, the delegated CNAME pattern shown above keeps its credentials limited to that one name.
The most common DNSLink failure isn't a typo in the value. It's a TXT record at the wrong name. The record must live at _dnslink.<domain>, not on the bare domain, which is easy to get backwards because A, CNAME and MX records do go on the domain itself.
For a subdomain like docs.example.org, the record goes at _dnslink.docs.example.org. Before you send real traffic, run dig TXT _dnslink.example.org and check that the record reads back exactly as intended. Then test the name end to end through an IPFS gateway.
DNSLink is only a naming layer. It doesn't store, copy or verify your content. The CID behind the record still needs a node serving it, which is the availability problem covered in content addressing vs location addressing.
A DNSLink record that points to a CID nobody has pinned resolves fine and then hits the same dead end as the bare CID. If you are putting a whole site behind the record, the guide to hosting a static website on IPFS covers the build-and-pin side.
With AIOZ Pin, DNSLink sits entirely on your side. You pin the content, take the CID, and put it in your own _dnslink TXT record. The AIOZ Pin docs don't mention DNSLink, IPNS publishing or custom domains, so the DNS record and any IPNS key stay in your hands.
The pinning CLI in the AIOZ Pin SDK docs can pin a whole directory, such as a site's build folder. These commands are quoted from the docs and were not run here, since they need real keys:
# Not run: from the AIOZ Pin SDK docs (pinning CLI)
pinning login --key "your_key" --secret "your_secret"
pinning pin --file ./build
# Then set: _dnslink.example.org TXT "dnslink=/ipfs/<CID from the output>"
One documented limit matters for websites. On the free plan, the limited premium gateway serves individual files like images, video and audio, but not files containing HTML and scripts, so a site served through it won't load. Next step: read the AIOZ Pin docs on premium gateways and their limits.
What is DNSLink? A way to map a regular domain name to IPFS content using a DNS TXT record, instead of sharing a raw CID or an IPNS name.
What does a DNSLink TXT record look like? _dnslink.example.org TXT "dnslink=/ipfs/<CID>", or the same record pointing at /ipns/<name> instead of a CID.
Is DNSLink faster than IPNS? Yes. The IPFS docs describe DNSLink as currently much faster than IPNS, because DNS answers are cached widely while IPNS over the DHT needs several network round trips.
Can DNSLink and IPNS be used together? Yes. A DNSLink record that points at an IPNS name gives you a readable domain, and you update the content by publishing new IPNS records without touching DNS.
Is DNSLink secure? It is as secure as your DNS. Anyone who controls the zone can change the record, and a resolver can't verify it the way it verifies a signed IPNS record.
Does DNSLink replace pinning? No. DNSLink only resolves a name to a CID, and the content still has to be hosted by someone.
/ipns/ paths
A multiaddr is a network address that names every protocol it uses, like /ip4/.../tcp/4001/p2p/ and a peer ID. Learn to read one and how IPFS peer IDs work.

IPFS bootstrap nodes are the first peers a new node dials to join the Amino DHT. See how Kubo uses them, who runs them after Shipyard, and how to edit the list.

The ipfs.io gateway now returns HTTP 429 to scripts and servers and sends browsers to inbrowser.link. See who runs the public IPFS services and what to change.

An IPFS glossary of 115 terms from A to Z: CIDs, Bitswap, the DHT, IPNS, gateways and pinning, each defined in plain words and linked to a deeper guide.

IPFS Provide Sweep is Kubo's provider that batches CIDs by DHT region, not one lookup each. See how it works, when it became default, and how to check it.

An IPFS dedicated gateway on AIOZ Pin is called a premium gateway. See what the free plan limits, what a paid plan adds, and what happens at zero balance.