chg: [internal] Resolve deprecation warning in reversedns

pull/620/head
Jakub Onderka 2023-07-01 15:12:19 +02:00
parent 1bdd96e44f
commit 2bc495cece
1 changed files with 1 additions and 1 deletions

View File

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