Proper error handling on failed axfr

This commit is contained in:
Dionysus 2025-01-04 21:56:53 -05:00
parent 8b66e00568
commit b6e7d3eef2
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE

View File

@ -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}')