Closed warburtr0n closed 3 years ago
Okay. problem here is that we're not correctly dealing with CNAMEs since we expect an A record
Upcoming code release implements a new goodToGo variable which, based on its boolean value (determined by the existing of a valid IP or successful DNS lookup), will determine whether any scans should be performed.
We’re checking to see if the given value is an IP or a name, and since it’s a name passing it to the get_dns function to look it up. This returns, but it returns an empty value in a list, because the name is not resolvable (dns_data.get('records').get('A')[0] # get first IP in list) and so we get the index error.
We should add a check somewhere to handle cases where the DNS name handed in is not resolvable.
===============
facebook.net
During handling of the above exception, another exception occurred: