mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[GH-ISSUE #3340] reflect dnssec_ok from request to response #1170
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#1170
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?
Originally created by @bryanlarsen on GitHub (Oct 31, 2025).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/3340
Describe the bug
This feels like more correct behaviour:
To Reproduce
conformance test:
Expected behavior
The above was added to !3310, but it's not appropriate nor necessary for !3310. Marcus0x62 commented https://github.com/hickory-dns/hickory-dns/pull/3310#discussion_r2479689437 on appropriate next steps.
Version:
!3310
@divergentdave commented on GitHub (Oct 31, 2025):
I couldn't find any normative text in RFC 4035 about what to do with the DO bit in responses, but the example responses in Appendix B do have the DO bit set. RFC 3225 does say "The DO bit of the query MUST be copied in the response".
@bryanlarsen commented on GitHub (Oct 31, 2025):
I've found evidence of contradictory behavior in another place in Hickory:
https://github.com/hickory-dns/hickory-dns/blob/main/crates/recursor/src/recursor.rs#L496 explicitly sets it to true despite it being passed in as a parameter to the resolve function.
Context: the maybe_strip_dnssec_records function takes record_type and query_dnssec_ok as parameters as well as the Message. Those two parameters seem redundant, since a Message should contain the query and the dnssec_ok bit. But if the response and query have different bit settings, I cannot elide it from the function.