[Netfilter] Replace query by resolve (deprecated)

master
andryyy 2020-08-27 20:50:22 +02:00
parent feffee40ba
commit d4dd1024c9
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
1 changed files with 1 additions and 1 deletions

View File

@ -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