mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[GH-ISSUE #2435] RecursorDnsHandle misclasifies DS no-ds.extended-dns-errors.com. as ErrorKind::Forward #990
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#990
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 @japaric on GitHub (Sep 6, 2024).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/2435
Describe the bug
What the title says
To Reproduce
Run the following code:
Relevant part of the logs / output:
Expected behavior
Although it is true that
extended-dns-errors.com.returns a SOA record, its response also contains NSEC3 records that indicate that the DS record does not exist. The NSEC* logic should have precedence here andProtoErrorKind::Nsecshould be returned instead. Without that information, other parts of the code won't be able to correctly identify this as an Insecure scenario (see #2395)System:
Version:
Crate:
hickory-recursorVersion:
a792b8288bAdditional context
This was tested without #2313 but the bug appears to be in the
recursorcrate not inprotoso, as of now, that PR won't fix this bug.no-ds.extended-dns-errors.com.uses NSEC3 to deny existence but this issue is also present when NSEC is used. I have tested /confirmed that locally and will submit a conformance test that hits that code path shortly.cc @pvdrz @listochkin
@japaric commented on GitHub (Sep 6, 2024):
#2436 hits the
ErrorKind::Forwardpath / issue using NSEC instead of NSEC3. that can be observed in the resolver logs.