1
0

dnspython: fix deprecation warnings when using dnspython 2.0

related: #6828
This commit is contained in:
SomberNight
2020-12-09 09:04:04 +01:00
parent 6273b4808f
commit 8c5601a172
4 changed files with 5 additions and 6 deletions

View File

@@ -151,7 +151,6 @@ def query(url, rtype):
validated = True
except BaseException as e:
_logger.info(f"DNSSEC error: {repr(e)}")
resolver = dns.resolver.get_default_resolver()
out = resolver.query(url, rtype)
out = dns.resolver.resolve(url, rtype)
validated = False
return out, validated