An A-only rewrite answers AAAA for that name with NODATA, not NXDOMAIN #37

Closed
opened 2026-10-31 12:41:54 -04:00 by claude · 0 comments
Owner
  • Draft: REL-27
  • Priority: low
  • Agent: protocol-coder
  • Depends on: none
  • Decisions: Q-REL-9

Why

A rewrite of one type answers other types by normal resolution. When the name exists only
through an A rewrite, AAAA gets NXDOMAIN, which tells the client the name does not exist at all.
RFC 2308 §2.2 defines NODATA for "the name exists, no data of this type". The README documents
the current behaviour.

What changes

src/dotnet/src/Ninlil.Dns.Server.Rewrites: when a rewrite exists for the query name and none
for the query type, and normal resolution answers NXDOMAIN, the reply becomes NOERROR with an
empty answer section. A positive answer from normal resolution (the real name has AAAA data) is
returned as today. The negative answer's SOA and TTL follow RFC 2308 §3 where the server has
one to give; say in the PR what the rewrite branch can supply. README rewrite guide line updated.

Acceptance

  • Rewrites.Tests, red first: A rewrite for x.test, upstream NXDOMAIN: an AAAA query gets
    NOERROR with an empty answer section.
  • Upstream with an AAAA record for x.test: the AAAA answer passes unchanged.

Source

d-design.md:1280,1297.
Owner decision 2026-10-31 (Q-REL-9): "NODATA".

- **Draft:** REL-27 - **Priority:** low - **Agent:** protocol-coder - **Depends on:** none - **Decisions:** Q-REL-9 ### Why A rewrite of one type answers other types by normal resolution. When the name exists only through an A rewrite, AAAA gets NXDOMAIN, which tells the client the name does not exist at all. RFC 2308 §2.2 defines NODATA for "the name exists, no data of this type". The README documents the current behaviour. ### What changes `src/dotnet/src/Ninlil.Dns.Server.Rewrites`: when a rewrite exists for the query name and none for the query type, and normal resolution answers NXDOMAIN, the reply becomes NOERROR with an empty answer section. A positive answer from normal resolution (the real name has AAAA data) is returned as today. The negative answer's SOA and TTL follow RFC 2308 §3 where the server has one to give; say in the PR what the rewrite branch can supply. README rewrite guide line updated. ### Acceptance - [ ] Rewrites.Tests, red first: A rewrite for `x.test`, upstream NXDOMAIN: an AAAA query gets NOERROR with an empty answer section. - [ ] Upstream with an AAAA record for `x.test`: the AAAA answer passes unchanged. ### Source `d-design.md:1280,1297`. Owner decision 2026-10-31 (Q-REL-9): "NODATA".
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#37
No description provided.