SPF record checker
An SPF record lists the servers allowed to send email for a domain. Enter a domain and the checker fetches its SPF TXT record, checks the syntax against RFC 7208, follows every include and redirect, and adds up the DNS lookups the whole tree needs, because receivers reject records that need more than 10. It also flags two SPF records on one domain, includes that point to domains without SPF, loops, ptr, and policies such as +all that let anyone send as you. You can also paste a record to check its syntax before you publish it.
Check
Lookups go from your browser straight to Cloudflare’s public DNS resolver (1.1.1.1) over HTTPS. Our server never sees the domain.
How to use the SPF Record Checker
- 1
Enter your domain
Type the domain you send email from, such as example.com.
- 2
Check
The tool finds the v=spf1 record and follows its includes.
- 3
Read the result
See the verdict, the total DNS lookups out of 10 and any errors or warnings.
- 4
Fix and recheck
Change the record at your DNS host, wait for the TTL and check again.
How SPF lookups are counted
Each include, a, mx, ptr and exists mechanism and the redirect modifier costs one DNS lookup, and the lookups inside included records count too. ip4, ip6 and all cost nothing. The total must stay at 10 or below (RFC 7208 §4.6.4).
Lookups that return no data, such as an include of a domain with no SPF record, are void lookups. More than two of them is also an error.
- total lookups = lookups in this record + lookups in every included record ≤ 10
When to use it
- Find out why mail fails SPF with permerror after adding another email service.
- Check how close a record is to the 10-lookup limit before adding an include.
- Confirm a new SPF record has the right syntax before publishing it.
- Audit which services are allowed to send email for a domain.
- Before adding a new email service such as a CRM or helpdesk, check how many DNS lookups its include would add to your record.
Limits
- The checker does not resolve a and mx mechanisms to IP addresses, so it cannot check the separate limit of 10 MX hosts.
- Includes that use macros, such as the one for the sender’s IP address, are only known when a message arrives, so they are listed but not followed.
- It checks the record, not whether a particular server or message passes SPF.
Privacy
Lookups are sent from your browser directly to Cloudflare’s public DNS resolver (1.1.1.1) over HTTPS. Our server never sees the domain you check, and nothing is stored.
Frequently asked questions
What is the SPF 10-lookup limit?
Evaluating an SPF record may trigger at most 10 DNS lookups in total, counting include, a, mx, ptr, exists and redirect, including those inside included records. Past 10, receivers return permerror and SPF fails.
Should I use ~all or -all?
~all (softfail) asks receivers to accept but mark mail from other servers; -all (fail) asks them to reject it. Many providers recommend ~all while DMARC enforces the policy, or -all once you are sure every sender is listed.
Can a domain have two SPF records?
No. Two TXT records that start with v=spf1 make SPF return permerror. Merge them into one record.
Why is ptr discouraged?
RFC 7208 says ptr should not be used: it is slow, unreliable and puts load on the DNS of the sender’s IP owner. Use ip4, ip6 or include instead.
Does SPF stop spoofing on its own?
Only partly. SPF checks the hidden envelope sender, not the From address people see. DMARC ties SPF and DKIM to the visible From address and tells receivers what to do on failure.
What does permerror mean?
Permanent error: the record is broken, for example a syntax error, more than 10 lookups or two SPF records. Receivers treat it as an SPF failure, and DMARC fails too unless DKIM passes.
My include target has no SPF record. Is that bad?
Yes. An include of a domain without an SPF record is a permerror under RFC 7208. Check the include name in your email provider’s setup guide.
How do I check my SPF record?
Type your domain (for example example.com, without https://) and press Check. The tool asks DNS for the domain's TXT records, finds the one starting with v=spf1, and shows whether it is valid, every include it follows and the total number of DNS lookups.
What does a good SPF record look like?
One TXT record per domain, starting with v=spf1, listing only the services that really send your mail and ending with ~all or -all. For example: v=spf1 include:_spf.google.com include:sendgrid.net ~all. It should need 10 DNS lookups or fewer in total.
How do I fix too many DNS lookups?
Remove includes for services you no longer use, and replace an include with the ip4: or ip6: ranges it stands for only if that provider publishes fixed ranges, because you then have to update them yourself when they change. Sending some mail from a subdomain with its own SPF record also spreads the lookups.
Related tools
- SPF Record GeneratorBuilds a valid v=spf1 TXT record from your mail servers, email services and IP ranges.
- DMARC Record CheckerFinds and validates a domain’s DMARC policy, report addresses and alignment settings.
- DKIM Record CheckerFinds a domain’s DKIM public key by selector and checks its tags, key type and key size.
People also use
- Phishing URL CheckerCheck a suspicious link for phishing tricks such as look-alike brand names and punycode, without opening it.
- SSH Key GeneratorMake an Ed25519 or RSA SSH key pair in OpenSSH format, with its fingerprint, without installing anything.
- 2FA / TOTP Code GeneratorGet 6-digit 2FA codes from a secret or QR code, create test secrets and check codes, all in your browser.
- Bcrypt & Argon2 Hash GeneratorCreate and check bcrypt and Argon2 password hashes, with parameters compared to OWASP guidance.
Last updated November 22, 2026 · How we build and test our tools