mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[PR #2609] [MERGED] Conformance: tests for handling of TC=1 responses #3178
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#3178
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/2609
Author: @divergentdave
Created: 11/22/2024
Status: ✅ Merged
Merged: 11/26/2024
Merged by: @marcus0x62
Base:
main← Head:david/test-caching-truncation📝 Commits (2)
e04fa05dns-test: Add basic support for TXT records416537aConformance: tests for handling of TC=1 responses📊 Changes
6 files changed (+405 additions, -1 deletions)
View changed files
📝
conformance/packages/conformance-tests/src/resolver/dns.rs(+1 -0)➕
conformance/packages/conformance-tests/src/resolver/dns/rfc1035.rs(+1 -0)➕
conformance/packages/conformance-tests/src/resolver/dns/rfc1035/truncated_udp_only.py(+36 -0)➕
conformance/packages/conformance-tests/src/resolver/dns/rfc1035/truncated_with_tcp_fallback.py(+46 -0)➕
conformance/packages/conformance-tests/src/resolver/dns/rfc1035/truncation.rs(+161 -0)📝
conformance/packages/dns-test/src/record.rs(+160 -1)📄 Description
This adds two conformance tests for handling of responses with TC=1. See #2608. The first test checks that recursive resolvers retry queries via TCP if they get a truncated response over UDP. The second test checks what happens if resolvers get a truncated response, but the authoritative server doesn't respond to TCP queries. Currently, BIND and Unbound return a SERVFAIL, while Hickory passes on the truncated response, and caches it. Both tests use dnslib-based authoritative servers, which return records indicating what transport protocol is in use, with different incrementing counter values in each response, so we can tell whether the recursive resolver is caching responses.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.