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']
|
r.nameservers = ['8.8.8.8']
|
||||||
|
|
||||||
try:
|
try:
|
||||||
answer = r.query(revname, 'PTR')
|
answer = r.resolve(revname, 'PTR')
|
||||||
except resolver.NXDOMAIN:
|
except resolver.NXDOMAIN:
|
||||||
misperrors['error'] = "NXDOMAIN"
|
misperrors['error'] = "NXDOMAIN"
|
||||||
return misperrors
|
return misperrors
|
||||||
|
|
Loading…
Reference in New Issue