Epic: each DHCP scope chooses what happens when a client's host name is already taken in DNS #186

Open
opened 2026-10-31 12:42:22 -04:00 by claude · 0 comments
Owner
  • Draft: BUG-48
  • Priority: low (today's refuse-and-log rule stays the default)
  • Agent: none (epic)
  • Depends on: none
  • Decisions: Q-BUG-11, R2-SUFFIX

Why

DhcpDnsRegistrationService refuses a client's host name when the name holds a record DHCP does not manage, or another client's active lease holds it, and logs a Warning on every renewal (src/dotnet/src/Ninlil.Dhcp.Server.DnsIntegration/DhcpDnsRegistrationService.cs:24-27,164-217,245-267). The client then has no name in DNS. The owner chose D9 a (refuse and log) on 2026-10-02 and now asks for a per-scope policy.

What changes

Children, in order:

  • #187: the scope stores a host-name conflict policy (storage).
  • #188: the registration service applies it, and the scopes API reads and writes it.
  • #189: snapshot and client.
  • #190: the scope form offers the policy.

Policies:

  • Refuse (the default, value 0): today's behaviour, unchanged for every existing scope.
  • AppendSuffix: when the name is taken, register <label>-<suffix> instead. The suffix is the first six hex digits of the SHA-256 of the lease's client identifier (owner decision R2-SUFFIX), so it is stable across renewals and differs per client. The label is shortened so the result stays within 63 octets (RFC 1035 §2.3.4). If the suffixed name is also taken, refuse and log as today.
    Static records always win: no policy replaces or shadows a record DHCP does not manage. Further policies (for example "the newest lease takes the name") can be added later as new enum values. The bare-name source #137 answers from whatever name this service registered.

Acceptance

  • Children closed. README DHCP DNS registration section describes both policies.

Source

D9 (owner 2026-10-02: a, with c deferred); DhcpDnsRegistrationService.cs.
Owner decision 2026-10-31 (Q-BUG-11): "per-scope policy setting (schema + API + UI)".
Owner decision 2026-10-31, round 2 (R2-SUFFIX): "6 hex digits of SHA-256 of the client id".

- **Draft:** BUG-48 - **Priority:** low (today's refuse-and-log rule stays the default) - **Agent:** none (epic) - **Depends on:** none - **Decisions:** Q-BUG-11, R2-SUFFIX ### Why `DhcpDnsRegistrationService` refuses a client's host name when the name holds a record DHCP does not manage, or another client's active lease holds it, and logs a Warning on every renewal (`src/dotnet/src/Ninlil.Dhcp.Server.DnsIntegration/DhcpDnsRegistrationService.cs:24-27,164-217,245-267`). The client then has no name in DNS. The owner chose D9 a (refuse and log) on 2026-10-02 and now asks for a per-scope policy. ### What changes Children, in order: - #187: the scope stores a host-name conflict policy (storage). - #188: the registration service applies it, and the scopes API reads and writes it. - #189: snapshot and client. - #190: the scope form offers the policy. Policies: - `Refuse` (the default, value 0): today's behaviour, unchanged for every existing scope. - `AppendSuffix`: when the name is taken, register `<label>-<suffix>` instead. The suffix is the first six hex digits of the SHA-256 of the lease's client identifier (owner decision R2-SUFFIX), so it is stable across renewals and differs per client. The label is shortened so the result stays within 63 octets (RFC 1035 §2.3.4). If the suffixed name is also taken, refuse and log as today. Static records always win: no policy replaces or shadows a record DHCP does not manage. Further policies (for example "the newest lease takes the name") can be added later as new enum values. The bare-name source #137 answers from whatever name this service registered. ### Acceptance - [ ] Children closed. README DHCP DNS registration section describes both policies. ### Source D9 (owner 2026-10-02: a, with c deferred); `DhcpDnsRegistrationService.cs`. Owner decision 2026-10-31 (Q-BUG-11): "per-scope policy setting (schema + API + UI)". Owner decision 2026-10-31, round 2 (R2-SUFFIX): "6 hex digits of SHA-256 of the client id".
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#186
No description provided.