Skip to content

Commit

Permalink
feat(iroh-dns-server)!: add dht fallback option (#2188)
Browse files Browse the repository at this point in the history
## Description

feat(iroh-dns-server): add dht fallback option

if we don't have a record, ask the DHT as a last resort.

The DHT entries need to go into a separate ttl cache so they are
invalidated when they get too old.

## Breaking changes

`iroh_dns_server::config::Config` struct has a new field `mainline`.

## Notes & open questions

The issue with async in pkarr has been solved.

Note: caching will be integrated into pkarr in v2. Once that is out we
might be able to remove the cache again and just use pkarr with an
appropriate sized cache configured.

## Change checklist

- [x] Self-review.
- [x] Documentation updates if relevant.
- [ ] Tests if relevant.

---------

Co-authored-by: Franz Heinzmann <frando@unbiskant.org>
  • Loading branch information
rklaehn and Frando authored Apr 29, 2024
1 parent 3696a49 commit 1c8ef79
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1c8ef79

Please # to comment.