The records API refuses a record name that is not the zone or below it #271
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!271
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/25-record-name-in-zone"
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?
The records API (create, PUT, PATCH in
RecordsController) now refuses with 400 an owner name that is neither the zone's name nor below it, after@is resolved (owner decision Q-REL-3). The check is label-wise and case-insensitive (RFC 4343) throughDnsName, sowwwexample.testis refused andWWW.Example.Testaccepted. The message suggests the full name: "'www' is not in zone 'example.test'; did you mean 'www.example.test'?". A name that is not a valid DNS name (for example a Unicode label) gets its own message asking for the xn-- form. No other API path writes records by name. README zones guide updated.Second commit: the OpenAPI snapshot and Angular client pick up the changed descriptions (text only).
Verified: 8 new Web.Tests (5 red before the fix); whole Ninlil.Web.Tests passes; build 0 warnings; console lint, format, tests and build pass.
The console record form can still send a short name and will now get the 400; #270 follows up.
Closes #25
Closes #26
🤖 Generated with Claude Code
https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Ghost referenced this pull request2026-11-05 03:05:48 -05:00