mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[PR #2551] [MERGED] Recursor: set RD=0 in queries to nameservers #3130
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#3130
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/2551
Author: @divergentdave
Created: 11/5/2024
Status: ✅ Merged
Merged: 11/6/2024
Merged by: @djc
Base:
main← Head:david/recursor-clear-rd📝 Commits (1)
bb85ccaRecursor: set RD=0 in queries to nameservers📊 Changes
3 files changed (+83 additions, -0 deletions)
View changed files
📝
conformance/packages/conformance-tests/src/resolver/dns/scenarios.rs(+61 -0)📝
conformance/packages/dns-test/src/tshark.rs(+17 -0)📝
crates/recursor/src/recursor_pool.rs(+5 -0)📄 Description
I noticed while using the
exploreexample target that the Hickory recursor is settingRD=1in outgoing queries. A default value oftruewas inherited fromDnsRequestOptions::default(), and never cleared. This can be a problem if another recursive resolver is erroneously listed as an authority for some zone. (If the name server isn't authoritative, then further queries are wasteful, and two such servers and erroneous zone referrals could be set up into a loop) This PR corrects that, and adds a conformance test checking the flag.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.