mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[GH-ISSUE #2256] Long TXT records dropped from response #938
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#938
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 @JarrahG on GitHub (Jun 24, 2024).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/2256
Describe the bug
When querying for TXT records, if one of the records is abnormally long it is not returned in the result set (though other responses are). The response is sent (it shows up in pcaps) and packets are not being fragmented.
To Reproduce
Steps to reproduce the behavior:
dig.Expected behavior
I expected all results to be returned. See below
digoutput.System:
Version:
Crate: Resolver
Version: 0.24.1
Additional context
In real-world usage, SPF records commonly hit this limit, this is where I hit it.
Resolver opts just in case I missed something there:
Thanks!
@djc commented on GitHub (Jun 24, 2024):
Is this being received over UDP or TCP? I probably won't have time to dig into this -- would need someone to figure out what layer of the code is dropping the response here so we can see why it is doing so.
If this is over UDP, try adding some debugging to
send_serial_message_inner()inudp_client_stream.rsto see how this is getting parsed? If TCP, not quite sure where itsSerialMessages get converted toMessageright now...@JarrahG commented on GitHub (Jun 24, 2024):
It was UDP. I already had a poke around the TXT record parsing code before posting, but I'll try again in the next few days, thanks for the pointer.
@JarrahG commented on GitHub (Jun 25, 2024):
Sorry for the noise, it turns out that that particular request had a non-character byte attached to the front of it, when my application attempted to stringify the response it was silently dropping that entry.
Not sure how my test on a different server with another long string also managed to trigger that bug, but either way, it's not your bug!
Thanks again.