
What is IPNS? The InterPlanetary Name System gives IPFS content a name that stays the same while the CID behind it changes. The name is the hash of a public key, and whoever holds the matching private key publishes signed records that point the name at the current CID.
TL;DR:
Updated Nov 25, 2026: removed unverifiable claims, added a worked notes.txt example and a DNSLink choice path, tightened the ending.
A CID is derived from content, which is why it can verify what you receive. The same property makes it a poor address for anything that changes. Take a one-line notes.txt holding hello world and a newline: its CID is bafkreifjjcie6lypi6ny7amxnfftagclbuxndqonfipmb64f2km2devei4. Add one ! and the CID becomes bafkreihm64a7oj6z4llxysvetldpxpgjs4tyvsqbbpo65olbyegpktkdli, so you would have to hand out the new address after every edit. A website, a dataset, an NFT metadata file or an ERC-8004 agent registration file (which then needs a new agentURI) has the same problem.
IPNS fixes that by naming something that does not change when the content does: a key. You share one name for notes.txt and update where it points, which adds mutability on top of immutable data. If you edit a folder by path on your own node, the Mutable File System gives you that folder's current CID to publish under an IPNS name.
An IPNS name is the hash of a public key, written as a CID with the libp2p-key codec. The record behind it holds the path it points to (usually /ipfs/<CID>) plus the fields of the IPNS record spec: a validity date, a sequence number, a TTL hint, and a V2 signature. The owner of the private key signs each record, and a client checks that signature against the name, so the record verifies itself. The same idea underlies how IPFS verifies content without trusting the gateway.

To update a name, you sign a new record with the same key. After the hello world! edit, the record for notes.txt holds /ipfs/bafkreihm64a7oj6z4llxysvetldpxpgjs4tyvsqbbpo65olbyegpktkdli, and its sequence number marks it as newer, because a new record must carry a higher number than the current one. Ed25519 is the default key type in the spec, RSA remains for older names, and implementations must handle records up to 10 KiB.
These examples come from the built-in help for `ipfs name` and were not run, because this machine has no IPFS binary. The ... is part of the help text, and the CID is the notes.txt block from above.
# Publish an <ipfs-path> with your default name
ipfs name publish /ipfs/bafkreifjjcie6lypi6ny7amxnfftagclbuxndqonfipmb64f2km2devei4
# Published to k51qzi5uqu5dgklc20hksmmzhoy5lfrn5xcnryq6xp4r50b5yc0vnivpywfu9p: /ipfs/bafk...
# Publish with another name, added by an 'ipfs key' command
ipfs key gen --type=ed25519 mykey
ipfs name publish --key=mykey /ipfs/bafkreifjjcie6lypi6ny7amxnfftagclbuxndqonfipmb64f2km2devei4
# Resolve the value of your name, or of another name
ipfs name resolve
ipfs name resolve k51qzi5uqu5dlz49qkb657myg6f1buu6rauv8c6b489a9i1e4dkt7a3yo9j2wr
Without --key, Kubo signs with the self key, which is the key behind your node's PeerID. Gateways resolve names too: a request to /ipns/<name> returns the current content, although resolving through a gateway means you trust that gateway's answer.
Records travel over the DHT by default, and publishing and resolving this way can be slow, especially the first time, because the client must find several records to be sure it has the highest sequence number. IPNS over PubSub can speed updates up, but Kubo ships it disabled and marks it experimental (Ipns.UsePubsub).
Three timers decide how fresh a name is, and they are easy to mix up.
Ipns.RecordLifetime is 48 hours, and records in the DHT expire after 48 hours whatever their validity says.Ipns.RepublishPeriod is 4 hours, and Kubo refuses to start if that period exceeds the lifetime.ipfs name publish --ttl is 1 hour, and a shorter value such as 1 minute gets quicker updates at the cost of more network load. Gateway operators can cap it with Ipns.MaxCacheTTL.The practical result is that a name is only as available as the node that republishes it. If the node behind notes.txt stays offline for more than 48 hours (two days), the record expires and the name stops resolving. The tradeoff is consistency against availability: a short validity period keeps answers fresh, while a longer one survives outages better. If updates reach people slowly, check the TTL first.
Provider records, which announce which node holds a block, follow a separate renewal cycle.
Because the name is derived from the public key, the private key is the name. Whoever holds it can repoint the name, and if you lose it you can no longer publish updates. A different key means a different name, so there is no way to move an existing name to a new key.
Kubo creates one key per ipfs key gen, and the help text for ipfs key export shows how to back one up:
ipfs key export testkey --format=pem-pkcs8-cleartext -o privkey.pem
That output is an unencrypted private key, so store it like any other secret. For a site or dataset you intend to keep for years, use a dedicated key rather than self, so that rebuilding your node does not take the name with it.
DNSLink maps a domain name to an IPFS path with a DNS TXT record at _dnslink.<your domain> that starts with dnslink=. It is currently much faster than IPNS, uses human-readable names, and can also point to an IPNS name.
We ran the lookup that the DNSLink docs use for docs.ipfs.tech on Oct 16 and again on Nov 25, 2026, with the same answer both times:
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 CID differs from the one printed on the docs page, so the record has moved on since that page was written. The answer also arrives through a CNAME, so the site owner can change the TXT record without touching the main zone.
Choose by what you control:
The trust model differs as well: DNSLink relies on DNS for the mapping, while an IPNS record proves itself with its signature.
IPNS moves a name, and pinning keeps every CID the name has pointed at. Pin the new CID first, then publish the record, so the name never points at content nobody holds. The previous version stays pinned until you unpin it, and what unpinning does depends on garbage collection. For the edited notes.txt, the two steps look like this:
# 1. Pin the new CID. Request from the AIOZ Pin docs, placeholder keys, not run
curl --location --request POST 'https://api.aiozpin.network/api/pinning/pinByHash' \
--header 'pinning_api_key: KEY' \
--header 'pinning_secret_key: SECRET' \
--header 'Content-Type: application/json' \
--data-raw '{"hash_to_pin": "bafkreihm64a7oj6z4llxysvetldpxpgjs4tyvsqbbpo65olbyegpktkdli"}'
# 2. Repoint the name. Command from the Kubo help, not run
ipfs name publish /ipfs/bafkreihm64a7oj6z4llxysvetldpxpgjs4tyvsqbbpo65olbyegpktkdliThe Pinning API reference has the full request.
What is the difference between IPNS and a CID?
A CID names fixed content and changes when the content does. An IPNS name stays the same and points at a CID that you can change.
Is IPNS the same as DNSLink?
No. IPNS uses a name derived from a key and a signed record. DNSLink uses a DNS TXT record on a domain you control, and it can point at an IPFS path or an IPNS name.
Why does my IPNS name stop resolving?
Usually the record expired because nothing republished it, since Kubo defaults to a 48-hour lifetime and a 4-hour republish period and a node offline for longer than 48 hours loses the record.
Can anyone publish to my IPNS name?
No. Only the holder of the private key can sign a valid record for the name, and resolvers reject records with a bad signature.
Is IPNS fast?
Not always, because publishing and resolving over the DHT can be slow, especially the first time, while DNSLink is currently much faster.
Does AIOZ Pin manage IPNS names?
AIOZ Pin pins by CID. An IPNS record is signed with your own key, so you publish it yourself and pin each new CID before you do.

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.