mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[PR #3156] [MERGED] Recursor: better handling of cached referral responses #3604
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#3604
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/3156
Author: @divergentdave
Created: 7/24/2025
Status: ✅ Merged
Merged: 7/29/2025
Merged by: @divergentdave
Base:
main← Head:david/recursor-cache-referral-handling📝 Commits (8)
fe9c140Split cache fetch out of RecursorDnsHandle::lookupde0ee9eFlatten match arms17592f0Inline and simplify one method callba79235Flip if statement condition5755c3dIgnore cached referral responsese4600daCheck AA on cache entries in two other places0aa4a39Remove "any matching RRSIG" logic on cache fetches0d66908Use structured logging📊 Changes
4 files changed (+60 additions, -62 deletions)
View changed files
📝
conformance/packages/conformance-tests/src/resolver/dns/regression.rs(+0 -1)📝
conformance/packages/conformance-tests/src/resolver/dnssec/scenarios/no_soa.rs(+1 -0)📝
crates/recursor/src/recursor.rs(+3 -3)📝
crates/recursor/src/recursor_dns_handle.rs(+56 -58)📄 Description
This changes the recursor so that we only re-use cached referral responses in the context of
ns_pool_for_zone(), and ignore them everywhere else. Looking at the header flags lets us remove some complicated DNSSEC-specific logic as well.I'm opening this as a draft for now, stacked on top of #3155. This is related to #3008 and #3125.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.