mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[PR #2369] [MERGED] Add "do not query" configuration to recursor #2986
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#2986
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/2369
Author: @divergentdave
Created: 8/21/2024
Status: ✅ Merged
Merged: 9/1/2024
Merged by: @bluejekyll
Base:
main← Head:david/do-not-query📝 Commits (3)
ad7a425Block recursive queries to configured networks0da6f60dns-test: Add option to override config filec33f88bAdd end-to-end tests📊 Changes
14 files changed (+353 additions, -30 deletions)
View changed files
📝
Cargo.lock(+2 -0)📝
conformance/packages/dns-test/src/resolver.rs(+20 -8)📝
crates/recursor/Cargo.toml(+2 -0)📝
crates/recursor/src/recursor.rs(+13 -0)📝
crates/recursor/src/recursor_dns_handle.rs(+69 -18)📝
crates/server/src/config/mod.rs(+12 -0)📝
crates/server/src/store/recursor/authority.rs(+2 -1)📝
crates/server/src/store/recursor/config.rs(+5 -0)📝
tests/e2e-tests/Cargo.lock(+1 -0)📝
tests/e2e-tests/Cargo.toml(+1 -0)📝
tests/e2e-tests/src/resolver.rs(+1 -0)➕
tests/e2e-tests/src/resolver/do_not_query.rs(+204 -0)➕
tests/e2e-tests/src/resolver/do_not_query.toml.jinja(+13 -0)📝
tests/test-data/test_configs/example_recursor.toml(+8 -3)📄 Description
This adds a
do_not_queryconfiguration option to the recursor, and in server configuration files. When resolving names, the recursor will filter out any nameserver addresses that fall into the configured networks, and never send them DNS requests. This implements the IP address part of #1723. The intended use of this is to prevent a recursive resolver from trying to do lookups against itself, or other DNS servers on a private network, regardless of the referrals found in other zones.End-to-end tests are included, to check that no requests are made to a specified name server when it is either the only nameserver returned in a referral, or one of two referrals.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.