mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 19:25:56 +03:00
[GH-ISSUE #3034] Recursor and forwarder drop NSEC/NSEC3 records from responses with wildcard expansion #1114
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#1114
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 (Jun 7, 2025).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/3034
When a response includes records resulting from wildcard expansion in a signed zone, NSEC/NSEC3 records and accompanying RRSIGs are included in the authority section to prove that the next closest encloser name does not exist, etc. The
RecursiveAuthoritydoes not currently pass these records on because they do not belong to the selected RRsets it returns with positive responses. Similarly, theForwardAuthorityfilters the response records upon receiving a positive response, and does not include these records. In both cases, the authority needs to return aLookupObject, which includes one list of records and an optionalLookupObjectof additional section records. (Neither of the two returns anything fromtake_additionals()) NSEC/NSEC3 records are typically only returned when handling a name error or no data response, when they are stored within aProtoError. A validating client downstream of either a forwarder or recursive name server would treat responses including wildcard-expanded records as bogus, since the closest encloser proof would be missing. Similar to #2781, the solution is to either change or replaceLookupObjectso that authorities return answer, authority, and additional records separately. This would also allow us to drastically simplifybuild_forwarded_response().