Network Tools
SPF Record Checker
Check a domain's SPF record or test a pasted one: each mechanism explained, includes and redirects followed, the 10-lookup limit counted and errors flagged.
How to use SPF Record Checker
Enter a domain, or paste an SPF record starting with v=spf1, and press Run SPF Checker. You get a verdict, the total DNS lookups out of 10, the policy for unlisted servers and a term-by-term table, plus the include tree.
- Enter a domain or recordType example.com to fetch its SPF record, or paste a draft record such as v=spf1 include:_spf.google.com ~all.
- Press Run SPF CheckerLeave Follow include and redirect ticked to count the lookups inside every included record.
- Fix what the warnings flagCheck the verdict and lookup count, then read each warning and the term table to see what to change.
Reading an SPF record: mechanisms and qualifiers
Take v=spf1 include:_spf.google.com ip4:203.0.113.10 mx ~all. include pulls in another domain's SPF policy, here Google Workspace's sending servers; ip4 and ip6 list addresses or ranges directly; a and mx allow the IPs behind the domain's own A/AAAA and MX records. The all at the end decides what happens to every other server: -all is Fail, ~all is SoftFail, ?all is Neutral and +all lets anyone send as your domain, which should never be used. The table lists each term with its meaning, the result when it matches and the DNS lookups it costs: here include and mx cost one each, plus whatever the included record uses, while ip4 and all cost none.
The 10-lookup limit and common errors
RFC 7208 caps SPF evaluation at 10 DNS lookups. include, a, mx, ptr, exists and redirect each count as one, and lookups inside included records add to the total. Go over 10 and receivers return PermError, which most treat as an SPF failure; the checker starts warning at 8. Common fixes are removing includes for services you no longer use and replacing stable senders with ip4 or ip6 ranges. The checker also flags more than one SPF record on a domain, include targets that do not exist or have no SPF record, include loops, more than two lookups that return nothing, terms after all that are never evaluated, the deprecated ptr mechanism and malformed IP ranges.
Accuracy and data handling
Network and domain data can change; record the lookup time and verify important findings in the authoritative account or service. The domain, URL or value required for this lookup is sent to the relevant service only to complete the request.
FAQ
Where should the SPF record be added?
Add it as a TXT record on the domain that sends the mail, usually with the host name @, and a value starting with v=spf1. A domain must publish exactly one SPF record, so merge entries rather than adding a second.
What is the difference between ~all and -all?
~all is SoftFail: mail from unlisted servers is usually accepted but may be marked as suspicious. -all is Fail and asks receivers to reject it. Move to -all once every legitimate sender is listed.
How do I fix too many DNS lookups in SPF?
Remove includes for services you no longer use, replace stable senders with ip4 or ip6 ranges, or send some mail from a subdomain with its own SPF record, so each record stays within 10 lookups.
Can I test an SPF record before publishing it?
Yes. Paste the record, starting with v=spf1, instead of a domain. It is checked the same way, and its includes are still followed through live DNS to count lookups.
More Network Tools
Related toolsCheck a DMARC record: policy, reports, alignment, errors and protection level.
Shorten a long URL with TinyURL and check where the short link goes.
Identify the browser, OS, device and bots behind any User-Agent string
Find a domain's registrar, expiry date, status locks and name servers.
IPv4 subnet maths: network, broadcast, host range, masks and subnet splits.
Expand CIDR blocks, convert IP ranges to CIDR, merge lists and test an IP.