diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-12-03 22:27:19 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-12-21 11:41:45 +0100 |
commit | 1750854916df6a777e6c12451eb5eb2aebbc93fe (patch) | |
tree | 84f30eb8a69407f0a34024c1a1106e7733d41e3e /test | |
parent | resolved: rework how we determine which scope to send a query to (diff) | |
download | systemd-1750854916df6a777e6c12451eb5eb2aebbc93fe.tar.gz systemd-1750854916df6a777e6c12451eb5eb2aebbc93fe.tar.bz2 systemd-1750854916df6a777e6c12451eb5eb2aebbc93fe.zip |
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
Diffstat (limited to 'test')
-rwxr-xr-x | test/networkd-test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/networkd-test.py b/test/networkd-test.py index 176d52a02..7011abc96 100755 --- a/test/networkd-test.py +++ b/test/networkd-test.py @@ -652,7 +652,7 @@ Domains= ~company ~lab''') conf = '/run/systemd/resolved.conf.d/test-disable-dnssec.conf' os.makedirs(os.path.dirname(conf), exist_ok=True) with open(conf, 'w') as f: - f.write('[Resolve]\nDNSSEC=no') + f.write('[Resolve]\nDNSSEC=no\nLLMNR=no\nMulticastDNS=no\n') self.addCleanup(os.remove, conf) # create /etc/hosts bind mount which resolves my.example for IPv4 |