1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-12 10:45:38 +02:00

Update start.py

fix missing leading . for the resolver test
This commit is contained in:
shing6326 2022-01-21 15:47:22 +08:00 committed by GitHub
parent c3af62ab03
commit 32446f03e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ def test_DNS():
resolver.nameservers=[ns]
while True:
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)
except Exception as 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);
else: