Back

Blog details

Why IPFS DHT Provider Records Expire and Get Renewed

AIOZ Network
7 min readSeptember 01, 2026
aioz-pin

IPFS provider records expire 48 hours after they are published on the Amino DHT, so a node has to keep re-announcing, or reproviding, its content. Kubo does it every 22 hours by default to stay findable. If it stops, your content is still stored, but other peers can't find it.

TL;DR:

  • A provider record maps a CID to the peer that has it, and it is stored on the 20 DHT servers closest to that CID
  • On the Amino DHT, provider records expire after 48 hours, and Kubo's Provide.DHT.Interval re-announces content every 22 hours, about half that window
  • Kubo's legacy provider handles one CID at a time and can fall behind with large collections, while Provide Sweep, the default since Kubo 0.39, batches CIDs by keyspace region
  • You can check findability yourself with a delegated routing query or ipfs routing findprovs
  • Pinning keeps blocks on disk, and reproviding keeps them discoverable: they are two separate jobs

Updated Nov 4, 2026: rechecked the 48-hour and 22-hour defaults against the current Kubo and go-libp2p-kad-dht sources. We added Provide Sweep, the provide strategies, a findability check we ran, a labelled diagram, and a closing section on what the AIOZ Pin docs say.

What Is a Provider Record?

A provider record is a small entry in the Amino DHT that says "this peer has this CID." When your node stores content, it publishes one for each CID it wants other peers to find. The record goes to the 20 DHT servers whose IDs are closest to the CID, so a later lookup knows where to ask.

The record holds your peer ID, not the content, so a peer that finds it still has to connect to you and fetch the blocks, usually over Bitswap or HTTP. Our guide to how IPFS finds and retrieves files through the DHT and Bitswap covers the lookup itself, and this post covers what happens to the record afterwards.

Why Do Provider Records Expire?

Peers on the DHT come and go all the time, and a record that never expired would keep pointing at nodes that went offline months ago, or at content they have since deleted. Expiry lets the DHT clean itself up without needing every peer to say "I don't have this anymore," which a crashed or disconnected peer could never send.

The cost of expiry falls on you as a provider, because your node has to keep re-announcing every CID it wants found, for as long as it wants it found.

How Often Kubo Reprovides Content

Two numbers set the rhythm, and both are defaults. The go-libp2p-kad-dht library defines DefaultProvideValidity as 48 hours, the time a provider record lasts on the Amino DHT before it must be refreshed. Kubo's Provide.DHT.Interval defaults to 22 hours, which its config docs describe as about half of that window to allow for network churn.

The 22-hour and 48-hour pair dates from 2022, when Kubo issue #9389 set them as new defaults. So a healthy node refreshes each record at least twice before it can lapse.

The library also keeps a provider's addresses for only 24 hours, through DefaultProviderAddrTTL. After that, a lookup still returns the peer ID, but your client needs an extra peer lookup to find the addresses.

Which CIDs get announced depends on Provide.Strategy, whose default, all, announces every block your node stores, including cached blocks you never pinned. The pinned strategy announces recursively pinned content, roots announces only the top-level CID of each pin, and modifiers such as +unique and +entities cut the count further. Fewer CIDs means a shorter reprovide run, but roots also means peers can't find providers for blocks in the middle of a file.

Legacy Provider vs Provide Sweep

Kubo has two provider systems, and the difference matters once you hold a lot of CIDs. The legacy provider handles one CID at a time, and each one needs its own DHT lookup to find the 20 closest peers. Kubo's docs put that lookup at 10 to 20 seconds, which typically limits a node to fewer than 10,000 CIDs per 22-hour interval.

The legacy provider also tries to reprovide everything at the start of each interval. If a run takes longer than the interval, the next cycle is skipped. Records that didn't get refreshed then expire after 48 hours, even though nothing happened to the blocks.

Provide Sweep is the newer strategy, and it has been Kubo's default since version 0.39. It splits the DHT keyspace into regions, finds the peers in each region once, and sends all the records for that region in a batch. Kubo's docs say this cuts lookups by 97% for a node providing 100,000 CIDs, and it spreads the work evenly across the 22 hours.

Sweep mode also saves its progress: if your node restarts, it resumes the cycle and queues any CIDs that missed their slot while it was offline. New content still goes out quickly on its own, and Optimistic Provide speeds up that first announcement.

Timeline diagram of IPFS provider records: a record published at hour 0 expires at hour 48; Kubo reprovides at hours 22 and 44 so the record never lapses; the legacy provider can overrun the 22 hour interval and skip a cycle, while Provide Sweep spreads keyspace regions evenly across the interval
Records last 48 hours, and Kubo refreshes them every 22. The legacy provider can overrun a cycle; Provide Sweep spreads the work out.

How Can You Check Whether Your Content Is Findable?

If you run Kubo, start with its own view of the provider system. These commands come from the Kubo docs and were not run here, since this machine has no IPFS binary:

# Not run: provider system status (Kubo config docs)
ipfs provide stat

# Not run: ask the routing system who provides a CID
ipfs routing findprovs <CID>

You can also check from outside your node, which is closer to what other peers see. A delegated routing endpoint answers the same question over plain HTTP. We ran this on 2026-11-04 against the public endpoint, using the example CID from the IPFS docs:

$ curl -s -D - -H 'Accept: application/json' https://delegated-ipfs.dev/routing/v1/providers/bafybeicklkqcnlvtiscr2hzkubjwnwjinvskffn4xorqeduft3wq7vm5u4
HTTP/2 200
content-type: application/json
cache-control: public, max-age=300, stale-while-revalidate=600, stale-if-error=172800
(body: 21 provider records; headers trimmed)

The stale-if-error value is 172,800 seconds, which is 48 hours. The spec ties that number to the Amino DHT's provider record expiry window, so a cached answer is never trusted for longer than a record can live. An empty result for your own CID is the signal to look at your node's reprovide runs, and our gateway troubleshooting order shows where that check fits.

Pinned Is Not the Same as Findable

Pinning protects blocks from garbage collection, and reproviding keeps them discoverable by peers who don't already know where they are. You can get one right while getting the other wrong. A laptop that pins a file and then sleeps for three days still has every block, but its provider records are gone after 48 hours.

The reverse can happen briefly too: after you unpin something, its old records can still point at you until the blocks are collected and the records expire.

How AIOZ Pin Handles It

The AIOZ Pin docs say pinning keeps your files persistently available within the IPFS network. Their concepts page adds that content discovery in IPFS uses DHTs that map CIDs to the peers storing the data. Keeping a node online is the part a pinning service takes off your hands, which is why a sleeping laptop is a poor provider.

What the docs don't cover yet: how AIOZ Pin announces provider records, which provider system or interval it uses, and whether it also announces to network indexers. If findability matters to you, run the delegated routing query above for your own CIDs after you pin them. If your users fetch through an AIOZ Pin gateway, their request is plain HTTP to a known host, and the DHT only matters for peers that fetch over IPFS itself. Our overview of how AIOZ Pin works covers the gateway side.

Next step: pin a file or an existing CID with the AIOZ Pin Pinning API.

Frequently Asked Questions

How long does an IPFS provider record last? On the Amino DHT, 48 hours from when it was last published. Kubo refreshes records every 22 hours by default.

Does pinning a file keep it discoverable? No. Pinning protects the blocks from garbage collection. Your node also has to keep reproviding the CIDs before their records expire.

What happens if a reprovide run takes too long? With Kubo's legacy provider, the next cycle is skipped and some records can expire. Provide Sweep spreads the work across the interval to avoid this.

What is Provide Sweep? Kubo's newer provider system, the default since version 0.39. It batches CIDs by DHT keyspace region instead of looking up each CID on its own.

How do I check whether my CID is findable? Run ipfs routing findprovs on a Kubo node, or query a delegated routing endpoint such as delegated-ipfs.dev/routing/v1/providers/<CID>.

Does AIOZ Pin reprovide my content? The docs say pinned files stay available within the IPFS network, but they don't describe the provider system or interval. You can check your own CIDs with a delegated routing query.

References

We only send updates when meaningful changes ship, and you can unsubscribe anytime

Related Content

blog thumbnail

What Is a Multiaddr? Peer IDs and Addresses in IPFS

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.

7 min readNovember 06, 2026
blog thumbnail

IPFS Bootstrap Nodes and How a New Node Finds Its Peers

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.

6 min readNovember 04, 2026
blog thumbnail

ipfs.io Gateway Not Working? What Changed and Who Runs It

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.

6 min readNovember 02, 2026
blog thumbnail

IPFS Glossary: Key IPFS and libp2p Terms Explained A to Z

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.

21 min readOctober 31, 2026
blog thumbnail

What Is IPFS Provide Sweep? How Kubo Announces Many CIDs

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.

6 min readOctober 30, 2026
blog thumbnail

IPFS Dedicated Gateway Free vs Paid Plans on AIOZ Pin

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.

6 min readOctober 28, 2026