mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-22 22:03:43 +03:00
networkd-test.py: do not query IPv6 address
From changelog of dnsmasq v2.87: ==== Note in manpage the change in behaviour of -address. This behaviour actually changed in v2.86, but was undocumented there. From 2.86 on, (eg) --address=/example.com/1.2.3.4 ONLY applies to A queries. All other types of query will be sent upstream. Pre 2.86, that would catch the whole example.com domain and queries for other types would get a local NODATA answer. The pre-2.86 behaviour is still available, by configuring --address=/example.com/1.2.3.4 --local=/example.com/ ==== (cherry picked from commit 55f9d72a5daa3d6f707878c0a50f856543c7de27) (cherry picked from commit eff4610088526ead6a448195156d86033335755e) (cherry picked from commit 3068157e3aae6397b158049da1a8cecf3f6feddd)
This commit is contained in:
parent
401594b4ab
commit
fa83835f2c
@ -694,13 +694,13 @@ DNSSECNegativeTrustAnchors=company lab
|
||||
try:
|
||||
# test vpnclient specific domains; these should *not* be answered by
|
||||
# the general DNS
|
||||
out = subprocess.check_output(['resolvectl', 'query', 'math.lab'])
|
||||
out = subprocess.check_output(['resolvectl', 'query', '-4', 'math.lab'])
|
||||
self.assertIn(b'math.lab: 10.241.3.3', out)
|
||||
out = subprocess.check_output(['resolvectl', 'query', 'kettle.cantina.company'])
|
||||
out = subprocess.check_output(['resolvectl', 'query', '-4', 'kettle.cantina.company'])
|
||||
self.assertIn(b'kettle.cantina.company: 10.241.4.4', out)
|
||||
|
||||
# test general domains
|
||||
out = subprocess.check_output(['resolvectl', 'query', 'search.example.com'])
|
||||
out = subprocess.check_output(['resolvectl', 'query', '-4', 'search.example.com'])
|
||||
self.assertIn(b'search.example.com: 192.168.42.1', out)
|
||||
|
||||
with open(self.dnsmasq_log) as f:
|
||||
|
Loading…
x
Reference in New Issue
Block a user