chg: [internal] Resolve deprecation warning in dns

pull/649/head
Jakub Onderka 2023-07-01 14:47:20 +02:00
parent bfe7fddf72
commit 13e48821c6
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ def handler(q=False):
r.nameservers = ['8.8.8.8']
try:
answer = r.query(toquery, 'A')
answer = r.resolve(toquery, 'A')
except dns.resolver.NXDOMAIN:
misperrors['error'] = "NXDOMAIN"
return misperrors