mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[PR #1513] [MERGED] on REFUSED response, fall back to other nameservers #2381
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#2381
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/1513
Author: @peterthejohnston
Created: 6/24/2021
Status: ✅ Merged
Merged: 7/4/2021
Merged by: @bluejekyll
Base:
main← Head:fallback-on-refused📝 Commits (6)
23a4bf3on refused, fall back to other nameservers52029abcombine match arms9959ca6add integration teste17a4ebmake match exhaustive2a1201bcombine match armscde3b31Merge branch 'main' into fallback-on-refused📊 Changes
3 files changed (+65 additions, -34 deletions)
View changed files
📝
crates/resolver/src/config.rs(+1 -1)📝
crates/resolver/src/error.rs(+29 -33)📝
tests/integration-tests/tests/name_server_pool_tests.rs(+35 -0)📄 Description
In using trust-dns-resolver as the DNS resolver for Fuchsia, we noticed that there are some authoritative DNS name servers that respond with a
REFUSEDresponse when they don't know the domain (e.g., it wasn't on an allowlist of hosts it'd respond to queries about).We have a mitigation for this to our current version of trust-dns-resolver (0.19.2): https://fuchsia-review.googlesource.com/c/fuchsia/+/545423/17/third_party/rust_crates/vendor/trust-dns-resolver/src/name_server/name_server.rs
I'd like to contribute a similar fix here, if you think it makes sense. The intention of this patch is essentially to add
REFUSEDto the list of "retryable" errors—errors that should not lead to a terminal query failure. I looked into the precedent for this and found this issue whereSERVFAILbeing a terminal error led to failed queries where the resolver should have continued on to other name servers. I also saw this TODO which suggests it might be appropriate to consider continuing a query after aREFUSEDresponse.I have a couple of questions:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.