Remove resolver 75.75.75.75, kept getting errors

Error messages now print which resolver was involved in the error
This commit is contained in:
fleetcaptain 2019-03-01 21:11:54 -08:00
parent b8bb16636f
commit 228071832d
1 changed files with 3 additions and 3 deletions

View File

@ -1056,7 +1056,7 @@ def lookup(guess, name_server):
exit() exit()
except: except:
# probably socket timed out # probably socket timed out
print("ERROR - possible socket timeout when trying " + guess) print("ERROR - possible socket timeout when trying " + guess + ' at server ' + name_server)
pass pass
if response: if response:
if debug: if debug:
@ -1108,7 +1108,7 @@ def lookup(guess, name_server):
record_type = 'A' record_type = 'A'
record_value = str(r.rdata) record_value = str(r.rdata)
else: else:
print("ERROR - returned stats " + rcode + " when trying " + guess) print("ERROR - returned stats " + rcode + " when trying " + guess + ' at server ' + name_server)
return record_type, record_value return record_type, record_value
@ -1145,7 +1145,7 @@ if __name__ == "__main__":
# Code added here # Code added here
if (analyze): if (analyze):
# res is the list of subdomains e.g. www.example.com, mail.example.com, etc # res is the list of subdomains e.g. www.example.com, mail.example.com, etc
resolvers = ['8.8.8.8', '8.8.4.4', '9.9.9.9', '75.75.75.75', '1.1.1.1', '1.0.0.1'] resolvers = ['8.8.8.8', '8.8.4.4', '9.9.9.9', '1.1.1.1', '1.0.0.1']
server = 0 server = 0
count = 0 count = 0
total = str(len(res)) total = str(len(res))