Free SPF record checker
Enter a domain to look up its SPF record and validate it. The checker finds the v=spf1 TXT record, flags multiple records, risky mechanisms such as +all or ptr, and counts the lookup-causing terms in the record, because SPF fails permanently once an evaluation passes 10 lookups. It explains each result and how to fix it.
What this SPF checker validates
SPF (Sender Policy Framework) is a TXT record at the root of your domain that lists the servers allowed to send mail for it. This tool fetches the record with a live DNS query and runs a fixed set of checks so the answer is the same every time you ask.
- Exactly one record that begins with v=spf1 (two records cause a permanent error)
- Well-formed mechanisms and modifiers, with no unknown or malformed terms
- How the record ends: -all, ~all, ?all, or a dangerous +all
- The number of lookup-causing terms written directly in the record, compared with the limit of 10 (nested includes are not expanded, so the true total can be higher)
- Use of the deprecated ptr mechanism
Reading the result
A passing result means a single, well-formed record exists and stays within the lookup limit. It does not prove every legitimate sender is listed. If you use a service that sends on your behalf and it is missing from the record, its mail can fail SPF even though the record itself is valid.
Look first at the ending. A record that ends in -all tells receivers to reject mail from anywhere not listed, while ~all asks them to treat it as suspicious but usually accept it. ?all expresses no opinion and +all allows every server on the internet to send as your domain, which defeats the purpose. Many organisations begin with ~all and move to -all once they are confident their sender list is complete.
example.com. IN TXT "v=spf1 include:_spf.google.com include:mailgun.org ip4:203.0.113.10 -all"Common reasons an SPF check fails
The most frequent problem is two SPF records, usually because a second tool added its own instead of merging into the existing one. Receivers treat that as an error, not as two valid policies. The second is going over 10 lookups after several include statements are added, and the third is a forgotten sender such as a CRM or invoicing system.
SPF also has a structural limit worth knowing: it validates the envelope sender (the Return-Path), not the visible From address, and it often breaks when mail is forwarded. That is why it is used together with DKIM and DMARC rather than on its own.
Beyond a one-off check
An SPF record that is valid today can break next month when a provider adds an include behind the scenes. DomainGuard paid plans re-check your domains on a schedule and alert you when the record changes or a new problem appears. The checker here is read-only and never edits your DNS.
Frequently asked questions
How do I check my SPF record?
Enter your domain above. The checker looks up the TXT records at your domain, finds the one starting with v=spf1 and reports on it. You can also run a TXT lookup with any DNS tool and look for v=spf1.
What is the SPF 10 DNS lookup limit?
SPF evaluation may cause at most 10 DNS-querying terms: include, a, mx, ptr, exists and the redirect modifier each count, including those inside included records. Exceeding it produces a permanent error and SPF fails.
Should my SPF record end in -all or ~all?
-all asks receivers to reject unlisted senders, ~all marks them as suspicious. Both are valid. ~all is a common starting point while you confirm every sender is listed. Avoid +all, which allows any server to send as your domain.
Can a domain have more than one SPF record?
No. A domain must publish a single SPF record. Multiple v=spf1 records cause a permanent error, so merge them into one record.