mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[PR #2839] [MERGED] resolver: store rooted names in Hosts map #3357
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#3357
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/2839
Author: @djc
Created: 3/10/2025
Status: ✅ Merged
Merged: 3/12/2025
Merged by: @djc
Base:
main← Head:hosts📝 Commits (10+)
77c5aadresolver: rename Hosts::new() to from_system()7dff170resolver: remove Option wrapper around Hosts09e37abresolver: move inherent impl before other impls0b55f22resolver: store rooted names in Hosts map0ad0303resolver: simplify hosts file parserf87921eresolver: reduce rightward drift in hosts file parser857a199resolver: move read_hosts() to Hosts::from_file()cf0ab7dresolver: externalize I/O errors from hosts file parsingda4b7d6resolver: reduce rightward drift in LookupIpFuture implaeef6afresolver: change CachingClient::lookup() to take &self📊 Changes
5 files changed (+367 additions, -460 deletions)
View changed files
📝
crates/resolver/src/caching_client.rs(+4 -4)📝
crates/resolver/src/hosts.rs(+71 -56)📝
crates/resolver/src/lookup_ip.rs(+271 -385)📝
crates/resolver/src/resolver.rs(+18 -12)📝
tests/integration-tests/tests/integration/lookup_tests.rs(+3 -3)📄 Description
Fixes #2836. Regression from #2560.
Assorted refactoring of the surrounding code included.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.