Added note about dumping to file

This commit is contained in:
Dionysus 2023-10-28 17:58:30 -04:00
parent 445bf2435e
commit 31b36e68b4
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE

View File

@ -54,13 +54,13 @@ if __name__ == '__main__':
for root in get_root_nameservers(): for root in get_root_nameservers():
try: try:
xfr = tld_axfr('', root+'.root-servers.net') xfr = tld_axfr('', root+'.root-servers.net') # Need to store to file in chunks
except Exception as e: except Exception as e:
print(f"Failed to perform zone transfer from the {root} root server: {e}") print(f"Failed to perform zone transfer from the {root} root server: {e}")
for tld in get_root_tlds(): for tld in get_root_tlds():
try: try:
for ns in get_tld_nameservers(tld): for ns in get_tld_nameservers(tld):
xfr = tld_axfr(tld, resolve_nameserver(str(ns))) xfr = tld_axfr(tld, resolve_nameserver(str(ns))) # Need to store to file in chunks
except Exception as e: except Exception as e:
print(f"Failed to resolve {tld}: {e}") print(f"Failed to resolve {tld}: {e}")