SPF record checker
Enter a domain to see its SPF record, every include it pulls in, how many of the 10 allowed DNS lookups it uses, and what its all mechanism does. A domain needs exactly one TXT record starting with v=spf1; more than 10 lookups or two SPF records make receivers return permerror, and SPF fails.
What this checker looks at
- The record itself. Exactly one TXT record on the domain that starts with
v=spf1. Two of them is a permanent error, not a merge. - DNS lookups. Every
include,a,mx,ptr,existsandredirectcosts a lookup, including the ones inside your includes. RFC 7208 caps the total at 10. - Void lookups. Names that return no answer. More than 2 is also a permanent error.
- The ending.
-allfails unlisted servers,~allsoftfails them,?allis neutral and+alllets anyone pass. - Who you've authorised. Known includes such as Postmark (
spf.mtasv.net), Mailgun (mailgun.org), SendGrid (sendgrid.net) and Amazon SES (amazonses.com, used by Resend).
Fixing "too many DNS lookups"
Each provider's include can hide several lookups of its own, so a record with five includes can easily pass 10. In order of preference:
- Remove senders you no longer use. Old marketing tools are the usual culprits.
- Send from subdomains. Give each provider its own subdomain (for example
mail.example.comfor transactional mail), each with its own SPF record and its own 10 lookups. - Rely on the Return-Path. Transactional providers check SPF against the envelope sender (Return-Path), which is often their own domain or a custom bounce subdomain, not your root domain. If a provider uses a custom Return-Path, it may not need to be in your root record at all; check its docs.
- Flatten carefully. Replacing includes with IP addresses cuts lookups but breaks silently when the provider changes its IPs. Avoid it unless you automate it.
Example records
| Situation | Record |
|---|---|
| Google Workspace mail plus Postmark | v=spf1 include:_spf.google.com include:spf.mtasv.net ~all |
| A subdomain that only sends through Mailgun | v=spf1 include:mailgun.org ~all |
| A domain that never sends email | v=spf1 -all |
Use the exact include your provider shows in its dashboard; the ones above are common examples, not a substitute for your provider's instructions.
SPF passing isn't the whole story
For DMARC, SPF only counts when the domain it checked (the Return-Path) matches the From domain. Many transactional emails pass SPF on the provider's bounce domain and still fail DMARC alignment. A custom Return-Path or DKIM signing on your own domain fixes that. See why DMARC fails and custom Return-Path domains.
Privacy
The checker runs in your browser. DNS questions go straight from your browser to Cloudflare's public DNS-over-HTTPS resolver (Google's if Cloudflare doesn't answer). bouncewise.app doesn't see or store the domains you check.
Questions
What does SPF permerror mean?
The record can't be evaluated: usually more than 10 DNS lookups, more than 2 void lookups, two SPF records on one domain, or a syntax error. Receivers treat permerror as an SPF failure.
Should I use -all or ~all?
~all is the common choice: unlisted servers softfail and DMARC decides what happens. Use -all once you're sure every legitimate sender is listed, or on domains that never send mail.
How long until a new SPF record shows up?
As soon as your DNS host publishes it and any cached copy expires (the old record's TTL, often 5 minutes to an hour). This checker asks a public resolver, so it may show the cached record for up to that long.
Related
- SPF fail, softfail and neutral: what they meanSPF fail: the sending IP isn't in the Return-Path domain's SPF record and it ends in -all. Softfail (~all) is weaker, neutral (?all) says nothing.
- Why DMARC fails, even when SPF or DKIM passesDMARC fails when no SPF or DKIM pass is aligned with the From domain. A pass on your provider's domain doesn't count. The causes and fixes.
- SPF, DKIM and DMARC explained, with a working setupSign with DKIM on your domain, align SPF via a custom Return-Path, start DMARC at p=none. The records for Postmark, Mailgun, SendGrid and Resend.
- Custom Return-Path domain: why and how to set it upA custom Return-Path puts bounces on your own subdomain so SPF aligns for DMARC. On Postmark: CNAME pm-bounces.example.com to pm.mtasv.net, then verify.
- DMARC checker: look up and test a DMARC recordFree DMARC checker: look up the _dmarc record for any domain, see its policy, reporting addresses and alignment, and what to fix before quarantine or reject.
- DKIM checker: look up a DKIM record by selectorFree DKIM checker: look up a DKIM public key by selector or try common ones, check the key type and size, and spot revoked or test-mode keys.