mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
networkd-test: disable DNSSEC in domain-restricted DNS test
dnsmasq 2.80 changed behaviour when being queried by resolved with enabled DNSSEC: It returns errors for SOA and DS queries which cause the entire query to fail. As we don't configure DNSSEC in this test anyway, just disable it so that we retain compatibility with old and new dnsmasq versions.
This commit is contained in:
parent
528a74a1ad
commit
6592c9c850
|
@ -575,6 +575,13 @@ class DnsmasqClientTest(ClientTestBase, unittest.TestCase):
|
||||||
def test_resolved_domain_restricted_dns(self):
|
def test_resolved_domain_restricted_dns(self):
|
||||||
'''resolved: domain-restricted DNS servers'''
|
'''resolved: domain-restricted DNS servers'''
|
||||||
|
|
||||||
|
# FIXME: resolvectl query fails with enabled DNSSEC against our dnsmasq
|
||||||
|
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\n')
|
||||||
|
self.addCleanup(os.remove, conf)
|
||||||
|
|
||||||
# create interface for generic connections; this will map all DNS names
|
# create interface for generic connections; this will map all DNS names
|
||||||
# to 192.168.42.1
|
# to 192.168.42.1
|
||||||
self.create_iface(dnsmasq_opts=['--address=/#/192.168.42.1'])
|
self.create_iface(dnsmasq_opts=['--address=/#/192.168.42.1'])
|
||||||
|
|
Loading…
Reference in a new issue