A single-label query is tried as <name>.<local domain> in Ninlil's own zones when a local domain is set #138
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.
Blocks
Depends on
Reference
lantea-one/ninlil#138
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
The owner added a third bare-name source in round 2: a chosen "local domain". A query for
printeris then tried asprinter.<local domain>in a zone Ninlil hosts, so static records an operator keeps in the home zone answer bare names too. It comes after the DHCP names (#137) and the hosts files (#175), before NXDOMAIN.What changes
DnsHygieneOptions.LocalDomain(string; empty, the default, turns the source off). The class is already inOptionsEnvironmentVariableRegistry(#136); add the ENVIRONMENT.md row (NINLIL_DNS_SERVER_HYGIENE_LOCAL_DOMAIN; check the derived name with the map) and recount the totals.src/dotnet/src/Ninlil.Dns.Server.Authoritative/Hygiene/LocalDomainHostNameSource.cs(new), implementingILocalHostNameSourcewithOrder = LocalHostNameSourceOrder.LocalDomain(third):IOptionsMonitor<DnsHygieneOptions>, so a change applies at once.LocalDomainset, looks up<name>.<LocalDomain>throughAuthoritativeZoneCache.FindZoneandCachedZone.GetRecords(src/dotnet/src/Ninlil.Dns.Server.Authoritative/Cache/CachedZone.cs:165-178). Only a zone the authoritative resolver answers counts; a forwarder-type zone (AuthoritativeQueryResolver.cs:75-79) does not.LocalDomain: nothing found (#140 reports this to the operator).ServiceCollectionAuthoritativeExtension.AnswerSource = Authoritative.ExpandDomain(#173: that one makes a bare name from a file also answer as a full name).Acceptance
src/dotnet/tests/Ninlil.Dns.Server.Authoritative.Tests: withLocalDomain = "lan"and a staticprinter.lan A 192.168.1.30,FindAsync("printer", A, client)returnsprinter A 192.168.1.30.LocalDomainempty, nothing is found.printerwith only an A record, asked for AAAA, gives NODATA.langives not found.alias.lanreturns the CNAME owned byaliasand no target records.LocalDomainthrough the options monitor takes effect on the next lookup.dotnet test src/dotnet/tests/Ninlil.Web.Tests --filter FullyQualifiedName~EnvironmentVariablepasses.Source
Owner decision 2026-10-31, round 2 (R2-BARE): "ALSO a chosen local zone (new 'local domain' setting: bare name tried as . in Ninlil's own zones)".