]> git.ipfire.org Git - thirdparty/systemd.git/commit - test/networkd-test.py
resolved: bind .local domains to mDNS with DNS_SCOPE_YES, similar LLMNR
authorLennart Poettering <lennart@poettering.net>
Mon, 3 Dec 2018 21:27:19 +0000 (22:27 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 21 Dec 2018 10:41:45 +0000 (11:41 +0100)
commit1750854916df6a777e6c12451eb5eb2aebbc93fe
tree84f30eb8a69407f0a34024c1a1106e7733d41e3e
parenta97a3b256cd6c56ab1d817440d3b8acb3272ee17
resolved: bind .local domains to mDNS with DNS_SCOPE_YES, similar LLMNR

Previously, we'd return DNS_SCOPE_MAYBE for all domain lookups matching
LLMNR or mDNS. Let's upgrade this to DNS_SCOPE_YES, to make the binding
stronger.

The effect of this is that even if "local" is defined as routing domain
on some iface, we'll still lookup domains in local via mDNS — if mDNS is
turned on. This should not be limiting, as people who don't want such
lookups should turn off mDNS altogether, as it is useless if nothing is
routed to it.

This also has the nice benefit that mDNS/LLMR continue to work if people
use "~." as routing domain on some interface.

Similar for LLMNR and single label names.

Similar also for the link local IPv4 and IPv6 reverse lookups.

Fixes: #10125
src/resolve/resolved-dns-scope.c
test/networkd-test.py