Closed EmailKarma closed 8 months ago
The same issue seems to encounter when an SPF records doesn't exist. Switched back to version 4.8.4 which is working fine.
python checkdmarc.py domain xx.xx --debug --skip-tls -p 2023-11-15 02:44:12,688 - DEBUG: Debug output enabled 2023-11-15 02:44:12,688 - DEBUG: Checking: xx.xx 2023-11-15 02:44:12,790 - DEBUG: Getting NS records on xx.xx 2023-11-15 02:44:12,817 - DEBUG: Checking for MX records on xx.xx 2023-11-15 02:44:12,873 - DEBUG: Checking for a SPF record on xx.xx Traceback (most recent call last): File "checkdmarc/checkdmarc.py", line 1663, in query_spf_record answers = _query_dns(domain, "TXT", nameservers=nameservers, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "checkdmarc/checkdmarc.py", line 649, in _query_dns resolver.resolve(domain, record_type, lifetime=timeout))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/dns/resolver.py", line 1333, in resolve (answer, done) = resolution.query_result(response, None) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/dns/resolver.py", line 836, in query_result raise NoAnswer(response=answer.response) dns.resolver.NoAnswer: The DNS response does not contain an answer to the question: xx.xx. IN TXT
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "checkdmarc/checkdmarc.py", line 2743, in check_spf spf_query = query_spf_record( ^^^^^^^^^^^^^^^^^ File "checkdmarc/checkdmarc.py", line 1680, in query_spf_record raise SPFRecordNotFound( SPFRecordNotFound: ('xx.xx does not have a SPF TXT record', 'xx.xx')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "checkdmarc/checkdmarc.py", line 3020, in
This should be fixed in the newly released version 5.0.0. Can you confirm?
Updated today - seems to be good now.
Just updated to v 4.8.5 and this bug was found when an SPF record was greater than 10 look ups.