mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[PR #697] [MERGED] Fix NSEC record selection for NODATA and NXDOMAIN responses #1612
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#1612
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/697
Author: @bluejekyll
Created: 3/1/2019
Status: ✅ Merged
Merged: 3/8/2019
Merged by: @bluejekyll
Base:
master← Head:fix-nsec-noerror📝 Commits (10+)
ff66255Always set authoritative flage0e1470include wildcard proof in NSEC9fcf97dmake NSEC records cover themselves at their own namee45cc8fdedup NSEC proofsda4a3c2fix start, middle, and end NSEC selection6bcec63fix clippy errors727b52cput SOA record before NSEC and NS records9593e42keep NXDOMAIN flag preserved when returning NSEC records9ba457creturn NOERROR on names with dots7714ab9improve NSEC verification📊 Changes
14 files changed (+813 additions, -425 deletions)
View changed files
📝
Cargo.lock(+234 -251)📝
crates/proto/src/rr/dnssec/rdata/nsec.rs(+21 -2)📝
crates/proto/src/rr/rdata/tlsa.rs(+0 -3)📝
crates/proto/src/xfer/secure_dns_handle.rs(+134 -79)📝
crates/server/src/authority/auth_lookup.rs(+41 -5)📝
crates/server/src/authority/catalog.rs(+8 -6)📝
crates/server/src/logger.rs(+1 -1)📝
crates/server/src/store/file/authority.rs(+87 -18)📝
crates/server/src/store/sqlite/authority.rs(+85 -17)📝
crates/server/tests/authority_battery/basic.rs(+45 -0)📝
crates/server/tests/authority_battery/dnssec.rs(+150 -42)📝
crates/server/tests/named_test_configs/example.com.zone(+3 -0)📝
tests/integration-tests/tests/secure_client_handle_tests.rs(+1 -1)📝
tests/integration-tests/tests/server_future_tests.rs(+3 -0)📄 Description
fixes: #696
FYI @Darkspirit
In the case of NODATA, the server was not returning a single NSEC that covered the specific name at which other records existed.
In the case of NXDOMAIN, the server was not properly returning NSECs that both 1) covered the query name, and 2) returned a proof that no wildcard records existed.
This patch adds tests for both, and fixes the underlying issue. (dedup of code will happen in a later patch)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.