# Go-libp2p-kad-dht v0.43.0: routing tables now survive restarts

**URL:** <https://discuss.ipfs.tech/t/go-libp2p-kad-dht-v0-43-0-routing-tables-now-survive-restarts/20427>\
**Category:** News\
**Tags:** dht, kubo\
**Created:** [October 29, 2026, 8:46pm UTC](https://discuss.ipfs.tech/t/go-libp2p-kad-dht-v0-43-0-routing-tables-now-survive-restarts/20427 "2026-10-29T20:46:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![guissou](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/guissou/32/7915_2.png) [@guissou](https://discuss.ipfs.tech/u/guissou)\
**Post date:** [October 29, 2026, 8:46pm UTC](https://discuss.ipfs.tech/t/go-libp2p-kad-dht-v0-43-0-routing-tables-now-survive-restarts/20427/1 "2026-10-29T20:46:17Z")

</div>

[go-libp2p-kad-dht v0.43.0](https://github.com/libp2p/go-libp2p-kad-dht/releases/tag/v0.43.0) saves the DHT routing table and uses it to rejoin the network after a restart.

## Why

Until now, every restart started with an empty routing table and rejoined the Amino DHT through the same few bootstrap peers, even though a running node knows hundreds of DHT servers and most of them are still online when it comes back. Rejoining through those known peers makes restarts faster, takes load off the bootstrap peers, and lets nodes rejoin when the bootstrap peers are unreachable. It also makes it easier to hand bootstrap peer operation over to more operators in the future.

## What changed

- The DHT saves its routing table peers, with their addresses, to its datastore every hour and on shutdown.
- On restart, it can dial the saved peers. They join the routing table through the usual checks, like any other peer.
- `BootstrapOrder` picks what to dial first: `BootstrapFirst` (the default: bootstrap peers first, saved peers as a fallback), `PersistedFirst` or `Concurrent`.
- `RoutingTablePersistence(0)` turns it off. The LAN DHT in `dual` doesn’t persist.

## Kubo

Kubo integration is ready in [ipfs/kubo#11481](https://github.com/ipfs/kubo/pull/11481) as an opt-in flag, `Routing.PersistDHTRoutingTable`, together with two boxo changes ([ipfs/boxo#1220](https://github.com/ipfs/boxo/pull/1220), [ipfs/boxo#1223](https://github.com/ipfs/boxo/pull/1223)). They are waiting for review and should land in an upcoming Kubo release. The plan is to ship it opt-in first and turn it on by default in a later release.

## Measurements

From a week on the live Amino DHT:

- A Kubo node reached 100 routing table peers in 2.1 s after a restart with persistence, against 11.5–22 s without, using fewer connections and file descriptors.
- About 70% of saved peers still answered after 7 days, and a week-old snapshot still restored in under a second without contacting any bootstrap peer.
- A node that had run for a day saved a more stable table: 83% of its peers were still reachable after 5 days.

Details are in [libp2p/go-libp2p-kad-dht#1299](https://github.com/libp2p/go-libp2p-kad-dht/pull/1299) and [ipfs/kubo#11481](https://github.com/ipfs/kubo/pull/11481).

Feedback welcome, here or on GitHub, especially from projects that embed go-libp2p-kad-dht.

---

<div class="post-metadata">

**Author:** ![Rashkae](https://avatars.discourse-cdn.com/v4/letter/r/96bed5/32.png) [@Rashkae](https://discuss.ipfs.tech/u/Rashkae)\
**Post date:** [October 29, 2026, 8:52pm UTC](https://discuss.ipfs.tech/t/go-libp2p-kad-dht-v0-43-0-routing-tables-now-survive-restarts/20427/2 "2026-10-29T20:52:35Z")

</div>

Always happy to see these improvements. But casually writing “should land in an upcoming Kubo release” at the end is literally what we used to call ‘burying the lead.’

---

<div class="post-metadata">

**Author:** ![guissou](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/guissou/32/7915_2.png) [@guissou](https://discuss.ipfs.tech/u/guissou)\
**Post date:** [October 29, 2026, 9:19pm UTC](https://discuss.ipfs.tech/t/go-libp2p-kad-dht-v0-43-0-routing-tables-now-survive-restarts/20427/3 "2026-10-29T21:19:50Z")

</div>

Fair point, thanks! The post is mostly about `go-libp2p-kad-dht`: the feature is released in v0.43.0, so projects embedding the library already get it.

Kubo and boxo currently have no maintainers, so they are frozen for now. The integration is ready in [ipfs/kubo#11481](https://github.com/ipfs/kubo/pull/11481), and the feature will hopefully ship in Kubo once new maintainers are designated.

---

<div class="post-metadata">

**Author:** ![meadsstoughton01](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@meadsstoughton01](https://discuss.ipfs.tech/u/meadsstoughton01)\
**Post date:** [November 19, 2026, 6:41pm UTC](https://discuss.ipfs.tech/t/go-libp2p-kad-dht-v0-43-0-routing-tables-now-survive-restarts/20427/4 "2026-11-19T18:41:20Z")

</div>

Given that Kubo/boxo are frozen, the library release is the actionable part for embedders. One thing worth documenting is downgrade behavior: does v0.43.0 write the persisted routing table under keys an older kad-dht will safely ignore, or could a rollback leave stale records behind? That determines whether it is safe to enable by default on long-lived nodes before Kubo catches up.
