mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-24 18:55:55 +03:00
[GH-ISSUE #2099] Non-existent CNAME target in the same zone should be returned with NXDOMAIN instead of NOERROR rcode #885
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#885
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 @SivaKesava1 on GitHub (Nov 30, 2023).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/2099
Describe the bug
This is related to if 'A CNAME B' exists in a zone, but B (related to the same zone) does not exist, then the return code should be NXDOMAIN. RFC 6604 mentions that
To Reproduce
Consider the following zone file:
Expected behavior
Consider the following reponse:
First, both the records should have been in the answer section.
Second, the RCODE should be
NXDOMAINgiven that the target belongs to the same zone file and doesn't exist.CoreDNS and Yadifa had similar issues and they fixed it. Please check those for some more details.
https://github.com/coredns/coredns/issues/4288#issuecomment-746914722
https://github.com/yadifa/yadifa/issues/11
An even subtle bug was found in NSD, only when
*is in RDATA - https://github.com/NLnetLabs/nsd/issues/152System:
OS: Ubuntu
Architecture: x86_64
Version: 18
rustc version: cargo 1.47.0
Version:
Crate: server
Version: :Trust-DNS 0.23.1
@bluejekyll commented on GitHub (Nov 30, 2023):
Thanks for the detailed report. We should add this as a scenario to the battery tests for our authority types.