Shipping an AI app or agent? Security review in 1 working day: $149 / ₹13,900. Request a review →
AI Review Ready
Home / Free tools / SPF checker
Free tool · runs in your browser

SPF record checker with the 10-lookup count

Counts every DNS lookup your SPF record triggers, through nested includes, and flags the settings that make SPF fail: more than 10 lookups, two SPF records, +all and ptr.

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=spf1 make the check return permerror (section 4.5).
  • 10 DNS lookups maximum. include, a, mx, ptr, exists and redirect each cost one, and includes inside includes count too. Over 10 is permerror (section 4.6.4). ip4, ip6 and all cost nothing.
  • Empty includes. Implementations should stop after more than 2 lookups that return nothing ("void lookups", section 4.6.4).
  • ptr should not be published (section 5.5): it is slow and unreliable.
  • The ending matters: -all fails other servers, ~all soft-fails them, ?all is neutral, and +all passes the whole internet.

"Too many DNS lookups": how to fix it

  1. Remove includes for services you no longer send from.
  2. Check whether a service needs an include at all: some send from their own domain and only need DKIM on yours.
  3. Move a sender to a subdomain (e.g. news.example.com) with its own SPF record.
  4. 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