mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[PR #1526] [MERGED] always retry on DNS error response from name server #2389
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#2389
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/1526
Author: @peterthejohnston
Created: 7/26/2021
Status: ✅ Merged
Merged: 8/4/2021
Merged by: @bluejekyll
Base:
main← Head:retry-on-errors📝 Commits (3)
58b0aferetry on all DNS error response codes724ddffreturn error response from highest priority name servere167528Merge branch 'main' into retry-on-errors📊 Changes
4 files changed (+110 additions, -40 deletions)
View changed files
📝
crates/resolver/src/config.rs(+6 -2)📝
crates/resolver/src/error.rs(+20 -19)📝
crates/resolver/src/name_server/name_server_pool.rs(+1 -1)📝
tests/integration-tests/tests/name_server_pool_tests.rs(+83 -18)📄 Description
This PR makes the two changes proposed in #1519:
I do have two outstanding questions:
ResponseCode::BADMODEdoes not lead to a retry in this this test. Any idea what's going on here, or whetherResponseCode::BADMODEhas some kind of special treatment I'm unaware of?RetryDnsHandlefrom the trust-dns-proto crate there.resolves #1519
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.