From 90394d7d8c534bd690cc38908358278b441c4ec3 Mon Sep 17 00:00:00 2001 From: Billy Chan Date: Fri, 21 Jan 2022 21:17:37 +0800 Subject: [PATCH] :art: use resolver.resolve --- core/admin/start.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/admin/start.py b/core/admin/start.py index ef675210..1964be5f 100755 --- a/core/admin/start.py +++ b/core/admin/start.py @@ -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.resolve('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: