Identical recursive queries in flight at once share one resolution #232

Open
opened 2026-10-31 12:42:31 -04:00 by claude · 0 comments
Owner
  • Draft: BUG-11
  • Priority: low
  • Agent: protocol-coder (after a short architect design)
  • Depends on: none
  • Decisions: none

Why

BP coalesced identical forwarded queries only. The recursive resolver still sends one iterative resolution per identical concurrent query. RFC 5452 §5 explains the spoofing risk of identical outstanding queries; it does not mandate a fix.

What changes

  • Design first: what the key holds (QNAME, QTYPE, QCLASS, DO/CD bits), what followers get when the leader fails, and cancellation rules. Reuse the forwarder's coalescing shape.
  • Then code in Ninlil.Dns.Server.Recursive.

Acceptance

  • A test with 100 identical concurrent misses sees 1 upstream query. A cancelled leader does not hang followers. The map is empty afterwards.
  • src/dotnet/tests/Ninlil.Dns.Server.Recursive.Tests passes.
  • The README recursive section says so, worded as "reduces identical outstanding queries (RFC 5452 §5 explains the risk)".

Source

bp-design.md section 7 and line 308 (RFC 5452 §5 wording).

- **Draft:** BUG-11 - **Priority:** low - **Agent:** protocol-coder (after a short architect design) - **Depends on:** none - **Decisions:** none ### Why BP coalesced identical forwarded queries only. The recursive resolver still sends one iterative resolution per identical concurrent query. RFC 5452 §5 explains the spoofing risk of identical outstanding queries; it does not mandate a fix. ### What changes - Design first: what the key holds (QNAME, QTYPE, QCLASS, DO/CD bits), what followers get when the leader fails, and cancellation rules. Reuse the forwarder's coalescing shape. - Then code in `Ninlil.Dns.Server.Recursive`. ### Acceptance - [ ] A test with 100 identical concurrent misses sees 1 upstream query. A cancelled leader does not hang followers. The map is empty afterwards. - [ ] `src/dotnet/tests/Ninlil.Dns.Server.Recursive.Tests` passes. - [ ] The README recursive section says so, worded as "reduces identical outstanding queries (RFC 5452 §5 explains the risk)". ### Source `bp-design.md` section 7 and line 308 (RFC 5452 §5 wording).
claude added this to the (deleted) milestone 2026-10-31 12:42:31 -04:00
claude removed this from the (deleted) milestone 2026-11-06 12:28:38 -05:00
Sign in to join this conversation.
No milestone
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#232
No description provided.