mirror of https://github.com/MISP/misp-modules
chg: [internal] Resolve deprecation warning in reversedns
parent
1bdd96e44f
commit
2bc495cece
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue