mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[PR #3179] [MERGED] Fix CNAME chasing #3617
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#3617
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/3179
Author: @divergentdave
Created: 8/6/2025
Status: ✅ Merged
Merged: 8/8/2025
Merged by: @divergentdave
Base:
main← Head:david/fix-cname-chasing📝 Commits (4)
fe5971dAdd tests for CNAME chasing across zones54ec917Don't restart query for CNAME when data present3c7c32fInclude RRSIGs when chasing CNAMEs6a57349Only set AD when AD or DO is set in query📊 Changes
4 files changed (+343 additions, -19 deletions)
View changed files
📝
conformance/packages/conformance-tests/src/resolver/dns/scenarios/cname.rs(+123 -5)📝
conformance/packages/conformance-tests/src/resolver/dnssec/scenarios/cname.rs(+192 -7)📝
crates/recursor/src/recursor_dns_handle.rs(+20 -3)📝
crates/server/src/authority/catalog.rs(+8 -4)📄 Description
This makes two fixes to CNAME processing, and fixes an unrelated issue surfaced by the same tests. First, if data for a canonical name is present, we no longer restart the search. This solves the duplicate record issue. Second, RRSIG records are now copied into the final response. I also noticed that we were setting the AD header flag in responses in cases where other servers were not. I fixed this by first checking if either the AD or DO flag was set in the initiating query. See the PowerDNS manual for an example of this logic. Additional tests are added to test chasing CNAMEs across zones, which I don't think we had coverage for before. This closes #3153.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.