From: Yu Watanabe Date: Fri, 16 Jun 2023 00:29:46 +0000 (+0900) Subject: networkd-test.py: disable global DNS= setting X-Git-Tag: v254-rc1~188^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F23391%2Fhead;p=thirdparty%2Fsystemd.git networkd-test.py: disable global DNS= setting Otherwise, queries may be passed to unexpected DNS servers. --- diff --git a/test/networkd-test.py b/test/networkd-test.py index af23f75741b..bf07bea17c8 100755 --- a/test/networkd-test.py +++ b/test/networkd-test.py @@ -640,7 +640,7 @@ class DnsmasqClientTest(ClientTestBase, unittest.TestCase): conf = '/run/systemd/resolved.conf.d/test-enable-dnssec.conf' os.makedirs(os.path.dirname(conf), exist_ok=True) with open(conf, 'w') as f: - f.write('[Resolve]\nDNSSEC=allow-downgrade\nLLMNR=no\nMulticastDNS=no\nDNSOverTLS=no\n') + f.write('[Resolve]\nDNSSEC=allow-downgrade\nLLMNR=no\nMulticastDNS=no\nDNSOverTLS=no\nDNS=\n') self.addCleanup(os.remove, conf) # create interface for generic connections; this will map all DNS names @@ -733,7 +733,7 @@ DNSSECNegativeTrustAnchors=company lab conf = '/run/systemd/resolved.conf.d/test-enable-dnssec.conf' os.makedirs(os.path.dirname(conf), exist_ok=True) with open(conf, 'w') as f: - f.write('[Resolve]\nDNSSEC=allow-downgrade\nLLMNR=no\nMulticastDNS=no\nDNSOverTLS=no\n') + f.write('[Resolve]\nDNSSEC=allow-downgrade\nLLMNR=no\nMulticastDNS=no\nDNSOverTLS=no\nDNS=\n') self.addCleanup(os.remove, conf) # Add example.com to NTA list for this test