Lookups go from your browser to Cloudflare's public DNS resolver (cloudflare-dns.com). Only the domain and record names are sent. Nothing is stored.
The rules that break SPF (RFC 7208)
- One record only. Two TXT records starting
v=spf1make the check return permerror (section 4.5). - 10 DNS lookups maximum.
include,a,mx,ptr,existsandredirecteach cost one, and includes inside includes count too. Over 10 is permerror (section 4.6.4).ip4,ip6andallcost nothing. - Empty includes. Implementations should stop after more than 2 lookups that return nothing ("void lookups", section 4.6.4).
ptrshould not be published (section 5.5): it is slow and unreliable.- The ending matters:
-allfails other servers,~allsoft-fails them,?allis neutral, and+allpasses the whole internet.
"Too many DNS lookups": how to fix it
- Remove includes for services you no longer send from.
- Check whether a service needs an include at all: some send from their own domain and only need DKIM on yours.
- Move a sender to a subdomain (e.g.
news.example.com) with its own SPF record. - Replacing includes with a provider's IP ranges ("flattening") cuts lookups, but breaks silently when the provider changes its IPs, so re-check it regularly.
Next: DMARC checker · all-in-one email check
Sources
- RFC 7208: Sender Policy Framework (SPF): www.rfc-editor.org/rfc/rfc7208
- Gmail: email sender guidelines: support.google.com/mail/answer/81126