|
|
@ -38,12 +38,12 @@ def test_DNS():
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
result = resolver.query('example.org', dns.rdatatype.A, dns.rdataclass.IN, lifetime=10)
|
|
|
|
result = resolver.query('example.org', dns.rdatatype.A, dns.rdataclass.IN, lifetime=10)
|
|
|
|
if not result.response.flags & dns.flags.AD:
|
|
|
|
if not result.response.flags & dns.flags.AD:
|
|
|
|
log.critical("Your DNS resolver at %s isn't doing DNSSEC validation; Please install unbound.", ns)
|
|
|
|
log.critical("Your DNS resolver at %s isn't doing DNSSEC validation; Please use another resolver or enable unbound via https://setup.mailu.io.", ns)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
error = False
|
|
|
|
error = False
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
except Exception as e:
|
|
|
|
except Exception as e:
|
|
|
|
log.critical("Your DNS resolver at %s is not working (%s). Please install unbound.", ns, e);
|
|
|
|
log.critical("Your DNS resolver at %s is not working (%s). Please use another resolver or enable unbound via https://setup.mailu.io.", ns, e);
|
|
|
|
time.sleep(5)
|
|
|
|
time.sleep(5)
|
|
|
|
|
|
|
|
|
|
|
|
test_DNS()
|
|
|
|
test_DNS()
|
|
|
|