mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[PR #3020] [MERGED] resolver: clean up name server pool implementation #3496
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#3496
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/3020
Author: @djc
Created: 5/29/2025
Status: ✅ Merged
Merged: 6/2/2025
Merged by: @djc
Base:
main← Head:pool-state📝 Commits (10+)
2287163resolver: remove unused implsc936b82proto: move NameServerStateInner below NameServerState14e2687resolver: rename NameServerStateInner to ConnectionState62464f8resolver: remove unused parameter5f8c66bresolver: implement Default for NameServerState04075a5resolver: import Ordering directly1f4e9f8resolver: merge name_server_state module into name_server4c91cd1resolver: inline ConnectionProvider boundsd2474a7resolver: drop bounds that are imposed by the trait definitioneb755dfresolver: re-order items in name_server_stats📊 Changes
9 files changed (+608 additions, -787 deletions)
View changed files
📝
crates/recursor/src/recursor_dns_handle.rs(+3 -2)📝
crates/resolver/src/lookup.rs(+1 -1)📝
crates/resolver/src/name_server/mod.rs(+7 -10)📝
crates/resolver/src/name_server/name_server.rs(+500 -107)📝
crates/resolver/src/name_server/name_server_pool.rs(+89 -125)➖
crates/resolver/src/name_server/name_server_state.rs(+0 -172)➖
crates/resolver/src/name_server/name_server_stats.rs(+0 -359)📝
crates/resolver/src/resolver.rs(+6 -9)📝
tests/integration-tests/tests/integration/name_server_pool_tests.rs(+2 -2)📄 Description
While I did a lot of small refactoring along the way, the big goal here is to get rid of the separate
datagram_connsandstream_connsin theNameServerPoolin favor of a single list of servers. In combination with #3019, that will enable further improvements in the configuration and implementation of the resolver's name server pool.This is eventually in service of #2738.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.