Proper error handling on failed axfr
This commit is contained in:
parent
8b66e00568
commit
b6e7d3eef2
@ -140,7 +140,10 @@ def process_domain(domain: str):
|
||||
print(f' {BLUE}Found {len(nameserver_ips):,} IP addresses for {PURPLE}{nameserver}{RESET}')
|
||||
|
||||
for nameserver_ip in nameserver_ips:
|
||||
attempt_axfr(domain, nameserver, nameserver_ip)
|
||||
try:
|
||||
attempt_axfr(domain, nameserver, nameserver_ip)
|
||||
except Exception as e:
|
||||
print(f' {RED}Error performing AXFR for {CYAN}{domain}{RESET} on {PURPLE}{nameserver} {GREY}({nameserver_ip}){RESET} - {e}{RESET}')
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user