The records API refuses a record name that is not the zone or below it #25

Closed
opened 2026-10-31 12:41:51 -04:00 by claude · 0 comments
Owner
  • Draft: REL-17
  • Priority: medium (a record named www in zone example.test is stored and never answered, silently)
  • Agent: coder
  • Depends on: none
  • Decisions: Q-REL-3

Why

RP-5 made @ mean the zone apex. A name without the zone suffix, such as www, is stored as
written and never answered (README.md:893-896 says so). The API accepts it without a warning.
RFC 1035 §5.1 makes names in a master file relative to the origin unless they end with a dot, but
the API's names are full names without a trailing dot, so www.example.test and www look alike.

What changes

  • src/dotnet/src/Ninlil.Web/Controllers/RecordsController.cs create, PUT and PATCH (where RP-5
    resolves @): after @ is resolved, a name that is neither the zone name nor below it
    (label-wise, case-insensitive, RFC 4343) is refused with 400. The message names the zone and
    suggests the full name, for example "'www' is not in zone 'example.test'; did you mean
    'www.example.test'?".
  • Apply the same rule to every other API path that writes records by name (bulk create or
    import paths in RecordsController and any sibling controller; grep for the @ resolution).
  • Check what the console's record form sends (src/angular/src/app/features/zones/). If it can
    send a short name, file a console-coder follow-up that appends the zone; do not change the
    console here.
  • README zones guide lines 893-896: the API refuses such names.
  • The XML doc of RecordWriteRequest.Name states the rule; the snapshot changes in #26.

Acceptance

  • Web.Tests, red first: for zone example.test, www gives 400 with the suggestion,
    www.example.test, @ and example.test are stored, www.other.test gives 400;
    WWW.Example.Test is accepted.
  • Whole Web.Tests except OpenApiSnapshotTests, which #26 fixes in the same PR.

Source

release-prep.md:162,177 (RP-5 claims table, "Relative names ... Unchanged; README says so").
Owner decision 2026-10-31 (Q-REL-3): "refuse with 400".

- **Draft:** REL-17 - **Priority:** medium (a record named `www` in zone `example.test` is stored and never answered, silently) - **Agent:** coder - **Depends on:** none - **Decisions:** Q-REL-3 ### Why RP-5 made `@` mean the zone apex. A name without the zone suffix, such as `www`, is stored as written and never answered (`README.md:893-896` says so). The API accepts it without a warning. RFC 1035 §5.1 makes names in a master file relative to the origin unless they end with a dot, but the API's names are full names without a trailing dot, so `www.example.test` and `www` look alike. ### What changes - `src/dotnet/src/Ninlil.Web/Controllers/RecordsController.cs` create, PUT and PATCH (where RP-5 resolves `@`): after `@` is resolved, a name that is neither the zone name nor below it (label-wise, case-insensitive, RFC 4343) is refused with 400. The message names the zone and suggests the full name, for example "'www' is not in zone 'example.test'; did you mean 'www.example.test'?". - Apply the same rule to every other API path that writes records by name (bulk create or import paths in `RecordsController` and any sibling controller; grep for the `@` resolution). - Check what the console's record form sends (`src/angular/src/app/features/zones/`). If it can send a short name, file a `console-coder` follow-up that appends the zone; do not change the console here. - README zones guide lines 893-896: the API refuses such names. - The XML doc of `RecordWriteRequest.Name` states the rule; the snapshot changes in #26. ### Acceptance - [ ] Web.Tests, red first: for zone `example.test`, `www` gives 400 with the suggestion, `www.example.test`, `@` and `example.test` are stored, `www.other.test` gives 400; `WWW.Example.Test` is accepted. - [ ] Whole Web.Tests except `OpenApiSnapshotTests`, which #26 fixes in the same PR. ### Source `release-prep.md:162,177` (RP-5 claims table, "Relative names ... Unchanged; README says so"). Owner decision 2026-10-31 (Q-REL-3): "refuse with 400".
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.

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