DHCP DNS registration follows the scope's host-name conflict policy, and the scopes API reads and writes it #188
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 project
No assignees
1 participant
Notifications
Due date
No due date set.
Reference
lantea-one/ninlil#188
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Why
See #186.
What changes
DhcpDnsRegistrationService.HandleLeaseChangeAsync: at the two refusal points (:175-190static records,:203-217another live lease), a scope withAppendSuffixregisters the suffixed name instead (six hex digits of SHA-256 of the client identifier), by the same checks (a static record or another live lease at the suffixed name means refuse). The result reports the name actually registered. A later renewal of the same lease finds its own record by address (existingByAddress) and keeps it.Refuse, existing suffixed records are left until the lease's next event; say so in the class summary.src/dotnet/src/Ninlil.Web/Models/DhcpModels.cs:hostNameConflictPolicyon the scope detail and the write request, with its XML doc;DhcpScopesControllercreate, update and PATCH; the scope examples. A missing field on create meansRefuse.Acceptance
src/dotnet/tests/Ninlil.Dhcp.Server.DnsIntegration.Tests, red first: withAppendSuffix, a second client asking for a name held by a live lease gets<label>-<six hex digits>equal to the first six hex digits of SHA-256 of its client identifier; the same client renewing keeps the same name; a name held by a static A record also gets the suffix while the static record is untouched; withRefuse, behaviour is unchanged.src/dotnet/tests/Ninlil.Web.Tests: create, read and patch the field; an unknown value gives 400. All pass exceptOpenApiSnapshotTests(#189, same PR).Source
#186.
Owner decision 2026-10-31, round 2 (R2-SUFFIX).