Black Friday until Nov 30: +50% on top-ups ⏳ Take the bonus
IP & Network

SPF Check

Domain SPF record analysis: mechanisms, includes, policy.

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

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.

Chapters
  1. 0:00 Reading the result
  2. 0:27 Try it free
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.

ksanyok/spf-checker

SPF record check

Check the SPF (Sender Policy Framework) record for a domain. Proper SPF prevents email address spoofing from your domain.

SPF record parsing
Mechanism check (include, ip4, a, mx)
DNS lookup count (limit 10)

How to Use

  1. Enter a domain name to analyze the SPF record
  2. The tool will extract the SPF record from DNS and parse all mechanisms
  3. Review the list of authorized servers and DNS query count

FAQ

Enter the domain and click Check SPF. The tool requests the TXT records, finds the v=spf1 record and shows the mechanisms, the all policy, the number of DNS lookups and warnings. No sign-up; the limit is 30 checks per minute.

The domain's TXT records contain no string beginning with v=spf1. Either SPF is not set up, or the record sits on another (sub)domain. For a domain you send mail from, add SPF.

-all (fail) asks the receiver to reject mail from unlisted sources, ~all (softfail) to mark it as suspicious, ?all (neutral) requires nothing, and +all allows everyone. Use -all or ~all to protect against spoofing.

Under RFC 7208, SPF evaluation may perform no more than 10 lookups for include, a, mx, ptr, exists and the redirect modifier. Exceeding it gives a permerror and mail may be rejected. Our tool counts only mechanisms of the top-level record; nested includes are not expanded.

SPF is only one of the checks. Deliverability also depends on DKIM, DMARC, domain and IP reputation and the message content. Check DKIM and DMARC on the neighbouring pages and make sure the domain in the email matches the one you tested.

No. Two v=spf1 records on one domain cause a permerror. Merge them into one with several includes. Our tool shows only the first record it finds and does not warn about a duplicate.

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 -all policy forbids sending from unlisted sources, while ~all only 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:

PolicyScoreResult for an unlisted server
-all100fail — the receiver may reject the message
~all80softfail — accept but treat as suspicious
?all50neutral — the domain makes no claim
+all20pass 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.
  • a and mx — 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 use ptr.
  • redirect=other.example — modifier that hands the whole policy to another domain; ignored if the record contains all.

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:

  1. Remove includes for services you no longer use.
  2. Drop a and mx if your web server and inbound mail hosts never send as the domain.
  3. List your own servers with ip4/ip6.
  4. Move marketing mail to a subdomain such as news.example.com with 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=spf without the 1, a space after the colon, an IPv6 address inside ip4:.
  • 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

SenderMechanism
Google Workspaceinclude:_spf.google.com
Microsoft 365include:spf.protection.outlook.com
SendGridinclude:sendgrid.net
Mailguninclude:mailgun.org
Amazon SESinclude: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.

Cascade link promotion for your site $30 bonusBacklinks 5→50→5000 across 100+ platforms. From $30 to start, plus a $30 bonus for newcomers.