Private reverse lookups are answered locally, and single-label names are answered from an ordered chain of local sources instead of being sent to public upstreams, on by default #136
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
#138 A single-label query is tried as <name>.<local domain> in Ninlil's own zones when a local domain is set
lantea-one/ninlil
Reference
lantea-one/ninlil#136
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 #134.
What changes
DnsHygieneOptions, sectionDnsServer:Hygiene, inNinlil.Dns.Server.Core/Hygiene/:AnswerPrivateReverseLocally(default true)KeepSingleLabelNamesLocal(default true)LocalNetworkGuardinNinlil.Dns.Server.Core/Hygiene/. Before going upstream:LocallyServedZoneCatalog.CoversReverseZone) gets NXDOMAIN with an SOA, per RFC 6303 §3. The special-use names (home.arpa,internal,resolver.arpa,service.arpa) are never answered by this rule;resolver.arpacarries RFC 9462 discovery queries.ILocalHostNameSource(new interface in the same folder), in ascendingOrder:int Order { get; }andValueTask<LocalHostNameAnswer> FindAsync(DnsName name, DnsResourceRecordTypeEnum type, IPAddress client, CancellationToken stoppingToken).LocalHostNameAnswersays whether the name exists and carries the records to answer with.LocalHostNameSourceOrder(static class, same folder) holds the owner's order as constants:DhcpRegisteredNames = 100(#137),HostsFiles = 200(#175),LocalDomain = 300(#138).KeepSingleLabelNamesLocalon, NXDOMAIN with no SOA. Technical call: this server holds no zone for a bare name, so it has no SOA to give, and a host name that registers a minute later should not be hidden by a cached negative answer. With the option off, the query goes upstream as today.KeepSingleLabelNamesLocalsays. A name an operator registered by DHCP, listed in a hosts file or placed in the local-domain zone is meant to be answered; the option only decides whether an unknown bare name may leak upstream.ForwarderQueryResolver(global set only) andRecursiveQueryResolver.AnswerSource = Serverfor the reverse and NXDOMAIN answers; a source sets its own (#137, #138).Acceptance
src/dotnet/tests/Ninlil.Dns.Server.Forwarding.Tests: with default options, a PTR for1.1.168.192.in-addr.arpareturns NXDOMAIN with an SOA and the fake upstream receives zero queries.168.192.in-addr.arpastill forwards that PTR to its own upstream.resolver.arpais not answered by the guard.src/dotnet/tests/Ninlil.Dns.Server.Recursive.Tests.nasis never sent upstream; with a fakeILocalHostNameSourceholdingnas A 192.168.1.20, the reply is that record; without it, NXDOMAIN.naswith different addresses: the reply carries the order-100 address.KeepSingleLabelNamesLocaloff, a fake source still answersnas, and an unknownfoogoes upstream.Source
audit-feature-parity.md§2A #9.