ungleich-game/check-cli.py
Nico Schottelius 84b0b58ed4 ++ notes
2019-04-14 20:06:45 +02:00

19 lines
504 B
Python

#!/usr/bin/env python
import check
checks = []
checks.append(check.DNSCheck("www.ungleich.ch"))
checks.append(check.DNSCheck("www.ungleich.ch", expected_result="2a0a:e5c0:0:2:400:b3ff:fe39:795c"))
checks.append(check.DNSCheck("www.ungleich.ch", rr_type="A", expected_result="185.203.112.17"))
for num_server in range(1,6):
server="d{}.ungleich.ch".format(num_server)
checks.append(check.DNSCheck("www.ungleich.ch", server=server))
for c in checks:
print("{} {}".format(c, c.check()))