[Netfilter] Replace query by resolve (deprecated)
parent
feffee40ba
commit
d4dd1024c9
|
@ -418,7 +418,7 @@ def genNetworkList(list):
|
||||||
hostname_ips = []
|
hostname_ips = []
|
||||||
for rdtype in ['A', 'AAAA']:
|
for rdtype in ['A', 'AAAA']:
|
||||||
try:
|
try:
|
||||||
answer = resolver.query(qname=hostname, rdtype=rdtype, lifetime=3)
|
answer = resolver.resolve(qname=hostname, rdtype=rdtype, lifetime=3)
|
||||||
except dns.exception.Timeout:
|
except dns.exception.Timeout:
|
||||||
logInfo('Hostname %s timedout on resolve' % hostname)
|
logInfo('Hostname %s timedout on resolve' % hostname)
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue