Key facts
Check a domain's SPF record online: enter the domain and see the v=spf1 record, a breakdown of mechanisms (include, ip4, mx and others), the all policy and warnings. Free, no sign-up. The 10-DNS-lookup limit is counted only on the top-level record, and nested includes are not expanded.
- Price
- Free
- Sign-up
- Not required
- Processing
- On our server: we query the domain's TXT records in DNS and parse the first v=spf1 record; nested includes are not expanded
- Input
- A domain (for example example.com) or a site address
- Limits
- 30 checks per minute per IP; no sign-up; only mechanisms of the top-level record are counted, nested includes and redirect are not expanded
- Output
- The SPF record text, a table of mechanisms (qualifier, type, value), the all policy, the number of mechanisms causing DNS lookups, warnings (over 10 lookups, +all, ?all) and a 0–100 score
- Last updated
Video walkthrough 0:40
SPF Record Checker Free: Validate Your SPF Record & DNS Lookup Count
Check a domain’s SPF record for free: parsed mechanisms, policy, DNS lookup count and a score.
Video transcript
Is your SPF record set up correctly? Check it for free. Enter a domain. I am using google. Click Check SPF. The record is parsed and scored: eighty out of a hundred. Each mechanism is listed with its qualifier, here an include of Google servers. SPF allows at most ten DNS lookups. SPF alone is not enough, so add DKIM and DMARC. Free, no sign-up. The link is in the description. Subscribe for more free tools.
See it in action
Open source on GitHub
Run the same check on your own machine: a Node.js command-line tool, a library and a GitHub Action. Open source under the MIT license.
SPF record check
Check the SPF (Sender Policy Framework) record for a domain. Proper SPF prevents email address spoofing from your domain.
How to Use
- Enter a domain name to analyze the SPF record
- The tool will extract the SPF record from DNS and parse all mechanisms
- Review the list of authorized servers and DNS query count
FAQ
Who it is for and typical uses
- Setting up mailings. After connecting a mail or newsletter service, check that its include is in the record and a policy is set.
- Emails land in spam. Missing SPF or a lax policy is one of the first causes; the tool shows what is in DNS.
- Protection against domain spoofing. The
-allpolicy forbids sending from unlisted sources, while~allonly marks such mail. - A client audit. A quick SPF check together with DKIM and DMARC on the same “domain email” strip.
SPF covers only the sending IPs: to confirm the message signature itself, run the DKIM checker for the domain's selector.
Honest limitations
- Nested includes are not expanded. Under RFC 7208 the limit of 10 lookups also counts nested records, while we count only mechanisms of the top-level record (include, a, mx, ptr, exists), so the real number can be higher. The
redirect=modifier is not counted either. - The first SPF record is used. Two v=spf1 records on one domain are an error (SPF returns permerror), but the tool will not show it.
- Without all the policy appears as ~all. If the record has no all mechanism, the report still shows ~all.
- No sender testing. We do not match a sender's IP against the record or test mail delivery.
- The score is simplified. It depends on the all policy and the number of mechanisms; real deliverability also depends on DKIM, DMARC and domain reputation.
Related: DKIM checker, DMARC checker, MX lookup, email header analyzer, DNS lookup.
The next step after checking this record: set up DMARC.
PromoPilot vs alternatives: comparison
We compare only what is confirmed on each service's own pages. Where we could not confirm a fact, the cell shows "—".
| Parameter | PromoPilot | MXToolbox SPF Record Check | dmarcian SPF Surveyor | EasyDMARC SPF Record Checker |
|---|---|---|---|---|
| Free and limits | Yes: 30 checks per minute, no sign-up | — | Listed under “Free DMARC Tools”; the page notes maintenance | A free tool; limits not stated |
| Record syntax check | Partly: mechanisms and the all policy | ✓ diagnostic tests for errors | ✓ errors and syntax problems with suggested fixes | ✓ syntax, IP addresses, TXT records |
| Expansion of nested includes | ✗ | — | An expandable tree of DNS queries per mechanism | ✓ SPF lookup trees; checks for the “10 DNS lookup” error |
| Listing of third-party senders | ✗ | — | ✓ third-party senders and IPs | ✓ sending sources |
| DKIM and DMARC next to it | ✓ separate pages with links | — | — | — |
Scroll the table sideways
Where we are weaker: we do not expand nested includes and redirect, so the DNS lookup counter is understated, we do not detect a duplicate SPF record, and there is no list of third-party senders or history.
When to choose PromoPilot: When you want a quick look at a domain's SPF record, its policy and obvious problems (+all, ?all, many includes). If the record chains includes of large services and you need an exact lookup count under RFC 7208, use an analyzer that expands nested records.
Checked on: . "—" means not confirmed on the official page; terms and prices change, so check the services' own sites.
SPF check: reading the analyzer report
To check an SPF record for a domain, the tool queries the domain's TXT records, picks the one that starts with v=spf1 and parses it. The report shows a score from 0 to 100, the raw record, the number of mechanisms, the number of DNS lookups and the final policy. The score is driven mainly by the all qualifier:
| Policy | Score | Result for an unlisted server |
|---|---|---|
-all | 100 | fail — the receiver may reject the message |
~all | 80 | softfail — accept but treat as suspicious |
?all | 50 | neutral — the domain makes no claim |
+all | 20 | pass for every server on the internet |
If the record has more than ten lookup mechanisms, another 30 points are deducted. Keep in mind that the SPF lookup counter covers the mechanisms in the record itself. Each include is one lookup, but the included record can contain its own includes, and those count too. To walk the chain, run:
dig +short TXT example.com dig +short TXT _spf.google.com
Also read the raw record in the report. If there is no all at all, the spec gives unlisted senders a neutral result, the same as ?all. A bare all with no sign means +all.
SPF syntax in one screen
Mechanisms are evaluated left to right; the first match wins. Each can carry a qualifier: + pass (default), - fail, ~ softfail, ? neutral.
ip4:198.51.100.7,ip4:198.51.100.0/24,ip6:2001:db8::/32— explicit addresses. No DNS lookup.aandmx— the domain's A/AAAA hosts and its mail exchangers. One lookup each (mx adds lookups for the hostnames).include:vendor.example— "also accept what this domain authorizes". How you authorize Google, Microsoft or an ESP.exists,ptr— rare; RFC 7208 says not to useptr.redirect=other.example— modifier that hands the whole policy to another domain; ignored if the record containsall.
The 10 DNS lookup limit
RFC 7208 caps SPF evaluation at ten DNS-querying terms: include, a, mx, ptr, exists and redirect, nested ones included. ip4, ip6 and all are free. Go over the limit and receivers return permerror, which means SPF fails for every message from the domain while the record still looks fine in the DNS panel. There is also a separate limit of two "void" lookups (queries that return nothing), which stale includes often trip.
Ways to get back under ten:
- Remove includes for services you no longer use.
- Drop
aandmxif your web server and inbound mail hosts never send as the domain. - List your own servers with
ip4/ip6. - Move marketing mail to a subdomain such as
news.example.comwith its own record and its own budget.
"Flattening" includes into IP lists also works, but vendors change their ranges, so a flattened record needs maintenance.
Common SPF mistakes
- Two v=spf1 records. Only one is allowed; two cause permerror. Merge the mechanisms into a single record. The report shows the first record it finds, so confirm the count with
dig TXT example.com. +all— authorizes anyone to send as you.- Typos —
v=spfwithout the 1, a space after the colon, an IPv6 address insideip4:. - Assuming subdomains inherit SPF. They don't. A subdomain that never sends mail should publish
v=spf1 -all. - Publishing the old SPF record type (99). It is deprecated; use TXT only.
Example records: Google Workspace, Microsoft 365, SendGrid
| Sender | Mechanism |
|---|---|
| Google Workspace | include:_spf.google.com |
| Microsoft 365 | include:spf.protection.outlook.com |
| SendGrid | include:sendgrid.net |
| Mailgun | include:mailgun.org |
| Amazon SES | include:amazonses.com |
A domain on Microsoft 365 that sends receipts through SendGrid and alerts from its own VPS:
v=spf1 ip4:198.51.100.7 include:spf.protection.outlook.com include:sendgrid.net ~all
Many ESPs check SPF on a dedicated bounce (Return-Path) subdomain that you point to them with a CNAME, not on your root domain. Follow the vendor's setup guide instead of adding includes by habit.
SPF header check: what the receiver actually saw
A DNS lookup tells you what is published; the message headers tell you how a receiver evaluated it. In Gmail, open the message and choose "Show original" — the summary shows SPF as PASS, SOFTFAIL, FAIL, NEUTRAL or PERMERROR with the sending IP. In the raw headers, look for Authentication-Results (or the older Received-SPF):
Authentication-Results: mx.google.com;
spf=softfail (google.com: domain of transitioning bounce@example.com
does not designate 198.51.100.25 as permitted sender) smtp.mailfrom=bounce@example.com
Two facts matter here: SPF was evaluated for the smtp.mailfrom domain, and 198.51.100.25 is not authorized. Add that server with ip4 or with the include of the service that owns it. permerror almost always means duplicate records or too many lookups; temperror points to a temporary DNS failure at your nameservers.
Where to edit the record
Edit SPF wherever your domain's nameservers are hosted — registrar, hosting panel or Cloudflare. Look for an existing TXT record with v=spf1 on the root name (@) and change it instead of adding a second one. Use type TXT, name @ (or just the label, such as news, for a subdomain), and a TTL around 3600. Strings longer than 255 characters must be split into several quoted strings inside one TXT record; most DNS panels do that for you. Cloudflare never proxies TXT records, so nothing else needs to be switched on.
~all vs -all
-all is stricter, but some receivers reject on SPF fail before they evaluate DKIM, and forwarded mail, where SPF breaks by design, gets lost. With DMARC in place, many operators keep ~all and let DMARC make the final call based on SPF and DKIM together. For domains that send no email at all, publish v=spf1 -all.
How SPF fits with DKIM and DMARC
SPF validates the envelope sender (Return-Path), not the From address the reader sees. DKIM signs the message with a domain key; DMARC requires SPF or DKIM to pass for a domain aligned with From and tells receivers what to do with failures. Since 2024 Gmail and Yahoo require all three from bulk senders. After the SPF check, look up your signing key with the DKIM checker, verify your policy with the DMARC checker, confirm your MX records, and inspect other record types with DNS lookup. After editing a record, wait for the old TTL to expire and run the SPF check again.



