mirror of https://github.com/MISP/misp-modules
chg: [internal] Resolve deprecation warning in dns
parent
bfe7fddf72
commit
13e48821c6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue