Closed codingo closed 6 years ago
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "VHostScan.py", line 127, in <module>
main()
File "VHostScan.py", line 96, in main
except (dns.resolver.NXDOMAIN):
NameError: name 'dns' is not defined
So that was a stupid transfer of code on my behalf! Not thinking at the time, patching this now.
Looks good!
Added exception handling around the DNS lookup to handle cases where PTR records may not be present, or a timeout occurs. Raise by @timkent in #68.