mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[GH-ISSUE #2781] CachingClient flattens additionals into answers #1059
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#1059
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 @howardjohn on GitHub (Feb 14, 2025).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/2781
Describe the bug
I am sending a
lookupthroughCachingClient. The response from the upstream looks like:The response from hickory flattens the additionals though:
(for completeness, the same
dignot going through hickory:)
To Reproduce
This can be reproduced against a coredns upstream server with the following config:
Then send a request through hickory.
Expected behavior
additionalsshould be preserved (I think?)System:
Version:
Crate: [e.g. client, server, resolver]
Version: v0.24.2
Additional context
I believe the split of answers/additionals is lost here
github.com/hickory-dns/hickory-dns@284c625eaa/crates/resolver/src/caching_client.rs (L393)where we flatten them all together@divergentdave commented on GitHub (Feb 14, 2025):
Yeah, this is probably the wrong behavior. For example, the DNSSEC RFCs have a SHOULD saying that responses should be cached "as a single atomic entry".
Issue #2602 is somewhat related, but in the case of the recursive resolver we split responses into many cache entries, rather than combining them into one entry with just one list of records.