domainaware / checkdmarc

A parser for SPF and DMARC DNS records
https://domainaware.github.io/checkdmarc
Apache License 2.0
244 stars 76 forks source link

Overcounting of dns_void_lookups #94

Closed aharpour closed 1 year ago

aharpour commented 1 year ago

Hi,

For a while, I had a suspicion that checkdmarc actually overcounts the number of dns_void_lookups but finally, Today, I conducted a simple test to confirm my suspicion. I added an SPF record for a subdomain of one of my domains, specifically "voidlookups.nestous.nl," with the following content: "v=spf1 a mx -all". Obviously, this SPF record can have a maximum of 2 void lookups but checkdmarc gives the following results for SPF:

"spf": { "record": "v=spf1 a mx -all", "valid": false, "dns_void_lookups": 3, "warnings": [], "error": "Parsing the SPF record has 3/2 maximum void DNS lookups - https://tools.ietf.org/html/rfc7208#section-4.6.4" },

I appreciate your attention to this matter.

Thank you, Ebrahim Aharpour