DNS64 synthesizes from A records when the AAAA lookup fails with an error other than NXDOMAIN, but never for a bogus answer #56

Closed
opened 2026-10-31 12:41:58 -04:00 by claude · 0 comments
Owner
  • Draft: BUG-35
  • Priority: low (affects IPv6-only networks behind a failing AAAA path)
  • Agent: protocol-coder
  • Depends on: none
  • Decisions: Q-BUG-4

Why

RFC 6147 §5.1.2 covers AAAA responses with other RCODEs. The recursive resolver synthesizes only when the AAAA lookup came back NoData (src/dotnet/src/Ninlil.Dns.Server.Recursive/Resolution/RecursiveQueryResolver.cs:166-172), never on SERVFAIL. B18-7 left it so on purpose. The owner routed it post-release (OD-B23-e = a).

What changes

  • RecursiveQueryResolver.cs DNS64 branch: an AAAA result with an RCODE other than NOERROR and NXDOMAIN is handled as RFC 6147 §5.1.2 says (read the section and quote it in the PR), so synthesis from the A records happens.
  • Never synthesize when validation made the result bogus (the RFC 6147 §5.5 rule at :187-212 stays): a bogus AAAA still gives SERVFAIL.
  • Check what the forwarding path does with DNS64 and apply the same rule there.

Acceptance

  • Red test in src/dotnet/tests/Ninlil.Dns.Server.Recursive.Tests: an AAAA SERVFAIL (not validation) with an A record present gets a synthesized AAAA. Fails on HEAD.
  • A test proves a bogus AAAA still gives SERVFAIL.
  • The forwarding path has the matching test if it does DNS64.
  • README DNS64 section states the rule.

Source

bughunt-plan.md:533; b23-design.md:224 (OD-B23-e).
Owner decision 2026-10-31 (Q-BUG-4): "follow RFC 6147 §5.1.2 except bogus".

- **Draft:** BUG-35 - **Priority:** low (affects IPv6-only networks behind a failing AAAA path) - **Agent:** protocol-coder - **Depends on:** none - **Decisions:** Q-BUG-4 ### Why RFC 6147 §5.1.2 covers AAAA responses with other RCODEs. The recursive resolver synthesizes only when the AAAA lookup came back NoData (`src/dotnet/src/Ninlil.Dns.Server.Recursive/Resolution/RecursiveQueryResolver.cs:166-172`), never on SERVFAIL. B18-7 left it so on purpose. The owner routed it post-release (OD-B23-e = a). ### What changes - `RecursiveQueryResolver.cs` DNS64 branch: an AAAA result with an RCODE other than NOERROR and NXDOMAIN is handled as RFC 6147 §5.1.2 says (read the section and quote it in the PR), so synthesis from the A records happens. - Never synthesize when validation made the result bogus (the RFC 6147 §5.5 rule at `:187-212` stays): a bogus AAAA still gives SERVFAIL. - Check what the forwarding path does with DNS64 and apply the same rule there. ### Acceptance - [ ] Red test in `src/dotnet/tests/Ninlil.Dns.Server.Recursive.Tests`: an AAAA SERVFAIL (not validation) with an A record present gets a synthesized AAAA. Fails on HEAD. - [ ] A test proves a bogus AAAA still gives SERVFAIL. - [ ] The forwarding path has the matching test if it does DNS64. - [ ] README DNS64 section states the rule. ### Source `bughunt-plan.md:533`; `b23-design.md:224` (OD-B23-e). Owner decision 2026-10-31 (Q-BUG-4): "follow RFC 6147 §5.1.2 except bogus".
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lantea-one/ninlil#56
No description provided.