Skip to content
Snippets Groups Projects
Commit 4ba082cc authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

test_dns_records.py: handle systemd-resolved

parent f96b99a5
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,9 @@ def check_dns(hostname, expected_ip):
if status == 0:
color = GREEN
address = get_result(output)
if address != expected_ip:
if address == "127.0.0.1" and resolver == "127.0.0.53":
continue
elif address != expected_ip:
print('Expected ip was: "%s", got "%s".' % (expected_ip, address))
color = RED
all_ok = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment