mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[PR #2331] [MERGED] Fix SOA referrals #2957
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#2957
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/2331
Author: @marcus0x62
Created: 7/30/2024
Status: ✅ Merged
Merged: 8/4/2024
Merged by: @bluejekyll
Base:
main← Head:soa_referral_fix📝 Commits (2)
ecc056bPR #2325 broke SOA-based referrals by castingc59cd58Added tests for ForwardNS and ForwardSOA; fixed caching client to pass through NS record inProtoError::NoRecordsFound when present📊 Changes
4 files changed (+113 additions, -8 deletions)
View changed files
📝
crates/proto/src/error.rs(+2 -3)📝
crates/resolver/src/caching_client.rs(+8 -4)📝
tests/integration-tests/src/mock_client.rs(+5 -1)📝
tests/integration-tests/tests/lookup_tests.rs(+98 -0)📄 Description
PR #2325 broke SOA-based referrals by casting SOA records in the nameservers query response section into NS Records; this patch changes the logic in crates/proto/src/error.rs to only add records from the nameservers section of a non-responsive message to the nameserver list if the record type is NS, preserving the existing SOA-forwarding logic.
This was breaking certain NS referrals, notably SOA referals for cloudflare nameservers.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.