SPF validator: does this record's syntax and lookup count hold up?
How does this check work, and what does the result tell you?
AdminKit's SPF validator checks a pasted SPF TXT record's syntax, counts its DNS-lookup-causing terms against RFC 7208's limit of 10, and explains its qualifiers — entirely offline, with no DNS queries performed. It never follows include or redirect chains; for a live, fully-resolved check against your domain's actual DNS, use AdminKit's SPF check instead.
Part of the Email authentication cluster — more tools, guides and terms on email authentication.
What the result means
This is a static syntax and lookup-count check of the record text you paste, not proof that your domain's published record matches it or that any particular mail source would pass. For the fully-resolved, live check against your domain's actual DNS, see the SPF check.
Next step
Run the live SPF check against
your own domain to follow every include/redirect chain over real DNS, or check your
DMARC policy next.
Keep this result
Copy a link to this check so you can share it or run it again later. Want a heads-up when this result changes? Talk to our team and we'll set it up for you.
How it works and limits
Paste an SPF TXT record below and AdminKit checks its syntax, counts the DNS-lookup-causing terms it contains
against RFC 7208’s limit of 10, and explains its qualifiers — entirely
offline. It never queries DNS or follows an include/redirect chain, which is why it reports the lookup count
in this record only; a record that looks fine here can still exceed the limit once nested includes are resolved.
What it checks
- Version tag — whether the record starts with the required
v=spf1term, as RFC 7208 §4.5 requires. - Lookup-causing term count — how many
include,a,mx,ptr,existsandredirectterms appear in this record, against RFC 7208 §4.6.4’s hard cap of 10, counted the same way Microsoft documents in its own SPF setup guide. - Qualifiers and flags — the
+,-,~and?qualifier on each mechanism, and the trailingallterm’s effect (fail, softfail, neutral or pass). - Syntax findings — a severity-ranked list of specific issues found (for example a missing version tag, a malformed term, or too many lookup-causing terms), each citing the offending term where one exists.
Why “this record only” matters
Six mechanism types cost a DNS lookup under RFC 7208 §4.6.4: include, a, mx, ptr, exists and redirect —
and include/redirect can each point at another record with its own lookup-causing terms nested inside. Because
this tool never resolves DNS, it counts only the terms visible in the text you paste; it has no way to see what a
nested include adds. Microsoft’s own guidance
on this exact limit puts it plainly: “having fewer than 10 include: statements doesn’t guarantee fewer than 10
DNS lookups.” A record this check marks valid can still fail in production once every include is followed — that
fully-resolved count is what the live SPF check reports instead.
How to read the results
- Verdict — Valid (no errors or warnings), Valid, with warnings (at least one warning) or Invalid (at least one error). A red “Over the RFC 7208 lookup limit” note appears next to it when the record has more than 10 lookup-causing terms.
- Starts with v=spf1 —
YesorNo. Without it receivers do not treat the TXT record as SPF at all; Google’s Workspace guide to setting up SPF likewise states that SPF records always start with thev=spf1tag. - DNS-lookup-causing terms — for example “2 of 10 DNS-lookup-causing terms in this record”.
- Record checked — the exact text the validator read.
- Findings — one line per issue with a severity badge and, where there is one, the term it is about. When there
is no error or warning, “No syntax or lookup-count issues found in this record.” is shown above the info notes:
- error: missing
v=spf1, a malformed term or unknown mechanism (this includesredirect:written with a colon or a qualifier on a modifier, such as-redirect=),include/exists/redirect/exp/ip4/ip6with no value, a badip4/ip6network, a CIDR length ona/mxoutside 0-32 (after/) or 0-128 (after//) or written with a leading zero (RFC 7208 §5.6), a CIDR length on any other mechanism (such asinclude/24orinclude:example.com/24), a secondallorredirect, or more than 10 lookup-causing terms; - warning:
ptr, anallthat passes everyone (+allor bareall), mechanisms written afterall(never evaluated; modifiers such asexp=may appear anywhere), aredirect=in a record that also hasall(RFC 7208 §6.1 says receivers ignore the redirect then), or 7 to 10 lookup-causing terms; - info: always present — a reminder that include and redirect chains were not followed; also a note for each
modifier SPF does not define (such as
foo=bar), which RFC 7208 §6 tells receivers to ignore. A mechanism written with=(such asinclude=instead ofinclude:) is such a modifier: the note names theinclude:form it probably meant, and the term is not counted as a lookup.
- error: missing
Examples
| Record pasted | Verdict | Lookup terms | What it means |
|---|---|---|---|
v=spf1 ip4:192.0.2.0/24 -all | Valid | 0 | Syntax is fine; only that range may send. |
v=spf1 mx include:spf.example.net ~all | Valid | 2 | Fine here; the live check still has to add what spf.example.net costs. |
v=spf1 a/24 mx -all | Valid | 2 | a/24 matches any IPv4 address in the same /24 as one of the domain’s A records; the CIDR length costs no extra lookup. |
v=spf1 +all | Valid, with warnings | 0 | Allowed by the syntax, but it authorizes every sender. |
v=spf1 -all ip4:198.51.100.1 | Valid, with warnings | 0 | The ip4 term comes after all and is never evaluated. |
v=spf1 include=spf.example.net -all | Valid | 0 | include= is an unknown modifier that receivers ignore; an info note suggests include:spf.example.net. |
v=spf1 ip4:192.0.2.300 -all | Invalid | 0 | 192.0.2.300 is not a valid IPv4 network. |
v=spf1 a/33 -all | Invalid | 1 | An IPv4 CIDR length must be 0-32. |
spf1 ip4:192.0.2.1 -all | Invalid | 0 | No v=spf1 version tag, so receivers ignore the record. |
Limits
- No DNS lookups are performed, ever — this reads the record text only, so it cannot confirm the record you paste is
what a domain actually publishes, or that an
include/redirecttarget even exists. - The lookup-term count is for this record alone; see the SPF check for the fully-resolved count after every nested include and redirect is followed.
- It does not evaluate whether any specific sending IP address would pass or fail against the record.
See what an SPF check result actually means for how a fully-resolved result is interpreted, fixing SPF “too many DNS lookups” (PermError) for what to do if a record is over budget, and the glossary entry for SPF for the short definition. SPF is one of three records mail authentication relies on — see SPF, DKIM and DMARC explained for how it combines with the other two, and how AdminKit’s checkers compare to other free options in the free SPF/DMARC checker roundup.
Frequently asked questions
Does this tool query DNS?
No — paste the record's text and it is checked entirely offline: syntax, the DNS-lookup-causing term count against RFC 7208's limit, and qualifiers. It never resolves the record against a real domain or follows an include/redirect chain; for that, use AdminKit's live SPF check.
Why does the lookup count only cover "this record only"?
Because the check never performs a DNS lookup, it can only see the include, a, mx, ptr, exists and redirect terms written in the text you paste — it cannot see the terms inside a nested include it never resolved. A record that looks fine here can still exceed RFC 7208's 10-lookup cap once its includes are followed; the live SPF check reports that fully-resolved count.
What's the difference between this and AdminKit's SPF check?
This validator is a static syntax/structure check of text you paste, with no DNS involved. The SPF check instead looks up a domain's actual published SPF record and resolves every include and redirect it finds over real DNS, so it reports the true, fully-resolved lookup count and an overall pass/fail against that domain.
Does AdminKit store the record I paste?
No — the record is sent to AdminKit's API to be parsed and the result returned; it is not logged or retained for this check. See /legal/privacy/ for the site-wide policy.
Why is a record with 7 lookup terms marked "Valid, with warnings"?
From 7 to 10 DNS-lookup-causing terms the validator adds an "approaching the limit" warning, because every include or redirect in the record can only add more lookups once it is resolved, never fewer. Above 10 terms the record is marked Invalid, since it already breaks RFC 7208's limit on its own.