mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[PR #3043] [MERGED] Replace DnsLru with a response cache #3516
Labels
No labels
blocked
breaking-change
bug
bug:critical
bug:tests
cleanup
compliance
compliance
compliance
crate:all
crate:client
crate:native-tls
crate:proto
crate:recursor
crate:resolver
crate:resolver
crate:rustls
crate:server
crate:util
dependencies
docs
duplicate
easy
easy
enhance
enhance
enhance
feature:dns-over-https
feature:dns-over-quic
feature:dns-over-tls
feature:dnsssec
feature:global_lb
feature:mdns
feature:tsig
features:edns
has workaround
ops
perf
platform:WASM
platform:android
platform:fuchsia
platform:linux
platform:macos
platform:windows
pull-request
question
test
tools
tools
trust
unclear
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hickory-dns#3516
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hickory-dns/hickory-dns/pull/3043
Author: @divergentdave
Created: 6/11/2025
Status: ✅ Merged
Merged: 6/13/2025
Merged by: @djc
Base:
main← Head:david/response-cache📝 Commits (5)
2c45551Add a special case for NSEC3 RRsets without RRSIGsb2a23a9Cache whole responses in recursor7d30b91Move TtlConfig69cff66Use ResponseCache in resolver4423ce7Inline cache_response function📊 Changes
20 files changed (+943 additions, -1242 deletions)
View changed files
📝
conformance/packages/conformance-tests/src/resolver/dnssec/regression.rs(+0 -1)📝
crates/proto/src/dnssec/dnssec_dns_handle/mod.rs(+7 -1)📝
crates/recursor/src/lib.rs(+22 -55)📝
crates/recursor/src/recursor.rs(+36 -38)📝
crates/recursor/src/recursor_dns_handle.rs(+70 -68)📝
crates/resolver/src/caching_client.rs(+91 -69)📝
crates/resolver/src/config.rs(+3 -3)➖
crates/resolver/src/dns_lru.rs(+0 -972)📝
crates/resolver/src/hosts.rs(+3 -7)📝
crates/resolver/src/lib.rs(+2 -1)📝
crates/resolver/src/lookup.rs(+1 -1)📝
crates/resolver/src/lookup_ip.rs(+1 -1)📝
crates/resolver/src/resolver.rs(+4 -4)➕
crates/resolver/src/response_cache.rs(+668 -0)📝
crates/resolver/src/response_cache/ttl_config_deserialize.rs(+1 -1)📝
crates/server/src/store/recursor.rs(+28 -13)📝
tests/test-data/test_configs/chained_blocklist.toml(+1 -1)📝
tests/test-data/test_configs/consulting_blocklist.toml(+1 -2)📝
tests/test-data/test_configs/example_recursor.toml(+1 -1)📝
util/src/bin/recurse.rs(+3 -3)📄 Description
This replaces
DnsLruwith a new data structure that stores aMessageinstead of aLookup, and pushes more specialized logic back to the callers. This closes #2602, and fixes a known issue where glue RRsets could be reused for recursive query responses.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.