mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 19:25:56 +03:00
[GH-ISSUE #2938] Recursor optimization: fetch one more NS record before sending original query #1095
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#1095
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?
Originally created by @divergentdave on GitHub (Apr 17, 2025).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/2938
Since #2919, the first lookup that uses the original recursive query, plus
ns_pool_for_referral(), plus the second lookup, act as an unrolling of the last loop of the QNAME minimization resolver algorithm, but with a tweak. We send the original query to the name server for the parent of the QNAME first, and then, if that returns a referral, we send the original query to the name server for QNAME itself. This results in suboptimal privacy, because we have not fully minimized queries to authoritative name servers, and whenever we query for names that are not at the apex of a zone, we make an extra query that does not cache well. If we instead queried for NS records all the way up to QNAME (or its parent, in the case of DS records), then those NS queries would be more cacheable, and we would only need to send one lookup with the original query.@divergentdave commented on GitHub (Jun 11, 2025):
Done in #2983.