"The DNS response does not contain an answer to the question"
Getting the following error: "dns.resolver.NoAnswer: The DNS response does not contain an answer to the question: [DOMAIN.COM]. IN TXT"
Happening with multiple domains in a list. Domains exist and are registered but are not being found. A catch would also be nice to continue on resolving other domains and see results.
Hey @maxdemajo
I realise it's been a while since you opened this, but do you have any example I could test on?
Hi, @maxdemajo and @serain:
I meet the same problem and found the solution:
Once there is a domain has no TXT record, it will rise this error. The solution is:
In mailspoof/scanners.py file:
txt_records = self.resolver.query(domain, 'TXT')
change to:
try:
txt_records = self.resolver.query(domain, 'TXT')
except:
txt_records = []
I am a little bit lazy and did not add Error info after exception....