Allow dns zone transfer from IPv6 (#1643)
This commit is contained in:
parent
50e9e8af30
commit
7558ffd4f3
1 changed files with 4 additions and 1 deletions
|
@ -876,7 +876,10 @@ def get_secondary_dns(custom_dns, mode=None):
|
|||
if not hostname.startswith("xfr:"):
|
||||
if mode == "xfr":
|
||||
response = dns.resolver.query(hostname+'.', "A")
|
||||
hostname = str(response[0])
|
||||
values.extend(map(str, response))
|
||||
response = dns.resolver.query(hostname+'.', "AAAA")
|
||||
values.extend(map(str, response))
|
||||
continue
|
||||
values.append(hostname)
|
||||
|
||||
# This is a zone-xfer-only IP address. Do not return if
|
||||
|
|
Loading…
Reference in a new issue