DNS64 synthesizes from A records when the AAAA lookup fails with an error other than NXDOMAIN, but never for a bogus answer #309
No reviewers
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lantea-one/ninlil!309
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/56-dns64-aaaa-errors"
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?
DNS64 now synthesizes from the A records when the AAAA lookup fails with an error other than NXDOMAIN, as RFC 6147 §5.1.2 says, but never for a bogus answer (§5.5).
RFC 6147 §5.1.2: "A result with RCODE=3 (Name Error) is handled according to normal DNS operation … Any other RCODE is treated as though the RCODE were 0 … and the answer section were empty." §5.1.3: a timeout "is treated as RCODE=2 (Server failure)."
RecursiveQueryResolver: the DNS64 branch runs for NoData and for ServFail. A ServFail AAAA with a synthesized A answer becomes NOERROR with the synthesized AAAA, no AD bit, TTL capped as §5.1.7 says when there is no SOA. If the A lookup fails too, the original SERVFAIL is returned.Tests (
RecursiveQueryResolverDns64Tests): a failed AAAA lookup with A present is synthesized (red on develop); A fails too keeps the AAAA error; NXDOMAIN is returned without synthesis; a bogus AAAA is SERVFAIL. Recursive.Tests 276, Web DNS64 tests 12, the class 5/5 runs; build 0 warnings; csharpier clean. Not covered by a test: a timeout through the real engine (mapped to ServFail atIterativeResolutionEngine.csno-answer path).Closes #56
🤖 Generated with Claude Code
https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK