Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4791 pages

Free tool · SEO and webmaster

SPF record checker

Type a domain to see its SPF record, what every part of it means, and how many of the 10 permitted DNS lookups it uses. Includes are followed down to the last record.

  • Free
  • No sign-up

By Maaz Zindani · Updated

A domain, a web address or an email address. Only the domain part is used.

When you press the button, the domain you typed is sent to Google Public DNS, plus the names of the domains your record includes and of the hosts its a, mx and exists terms point to. If Google cannot be reached, Cloudflare is asked instead. Nothing is sent before that, and nothing else leaves this page.

Result

Sample: a recorded lookup of cloudflare.com from 20 Nov 2026. Press the button for a live result.

SPF record looks valid7 of 10 DNS lookups used

  • 7 / 10 lookups
  • 0 / 2 void lookups
  • Ends: -all
  • 9 terms
Record at cloudflare.com
v=spf1 ip4:199.15.212.0/22 ip4:173.245.48.0/20 include:_spf.google.com include:spf1.mcsv.net include:spf.mandrillapp.com include:mail.zendesk.com include:stspg-customer.com include:_spf.salesforce.com -all
What to know
  • Good The record ends in -all (fail): mail from any server not listed is meant to be rejected.
  • Good The record uses 7 of the 10 DNS lookups allowed.
Every term, and the records it pulls in
  1. 2 IP ranges (2 IPv4, 0 IPv6), no lookups

    ip4:199.15.212.0/22 ip4:173.245.48.0/20

  2. include:_spf.google.com1 lookupAllows any sender that the SPF record of _spf.google.com allows.
    Open _spf.google.com: 11 terms, 0 lookups inside
    1. 10 IP ranges (4 IPv4, 6 IPv6), no lookups

      ip4:74.125.0.0/16 ip4:192.178.47.0/24 ip4:192.179.92.0/22 ip4:209.85.128.0/17 ip6:2001:4860:4864::/56 ip6:2404:6800:4864::/56 ip6:2607:f8b0:4864::/56 ip6:2800:3f0:4864::/56 ip6:2a00:1450:4864::/56 ip6:2c0f:fb50:4864::/56

    2. ~allMarks as suspicious (softfail) every other sender, whoever it is.
  3. include:spf1.mcsv.net1 lookupAllows any sender that the SPF record of spf1.mcsv.net allows.
    Open spf1.mcsv.net: 3 terms, 0 lookups inside
    1. 2 IP ranges (2 IPv4, 0 IPv6), no lookups

      ip4:205.201.128.0/20 ip4:198.2.128.0/18

    2. ?allTakes no side on (neutral) every other sender, whoever it is.
  4. include:spf.mandrillapp.com1 lookupAllows any sender that the SPF record of spf.mandrillapp.com allows.
    Open spf.mandrillapp.com: 13 terms, 0 lookups inside
    1. 12 IP ranges (12 IPv4, 0 IPv6), no lookups

      ip4:198.2.128.0/24 ip4:198.2.132.0/22 ip4:198.2.136.0/23 ip4:198.2.145.0/24 ip4:198.2.186.0/23 ip4:205.201.131.0/24 ip4:205.201.134.128/25 ip4:205.201.136.0/23 ip4:205.201.139.0/24 ip4:198.2.177.0/24 ip4:198.2.178.0/23 ip4:198.2.180.0/24

    2. ~allMarks as suspicious (softfail) every other sender, whoever it is.
  5. include:mail.zendesk.com1 lookupAllows any sender that the SPF record of mail.zendesk.com allows.
    Open mail.zendesk.com: 6 terms, 0 lookups inside
    1. 5 IP ranges (5 IPv4, 0 IPv6), no lookups

      ip4:103.151.192.0/23 ip4:185.12.80.0/22 ip4:188.172.128.0/20 ip4:192.161.144.0/20 ip4:216.198.0.0/18

    2. ~allMarks as suspicious (softfail) every other sender, whoever it is.
  6. include:stspg-customer.com1 lookupAllows any sender that the SPF record of stspg-customer.com allows.
    Open stspg-customer.com: 31 terms, 0 lookups inside
    1. 30 IP ranges (30 IPv4, 0 IPv6), no lookups

      ip4:23.253.182.103 ip4:23.253.183.145 ip4:23.253.183.146 ip4:23.253.183.147 ip4:23.253.183.148 ip4:23.253.183.150 ip4:166.78.68.221 ip4:167.89.46.159 ip4:167.89.64.9 ip4:167.89.65.0 ip4:167.89.65.53 ip4:167.89.65.100 ip4:167.89.74.233 ip4:167.89.75.33 ip4:167.89.75.126 ip4:167.89.75.136 ip4:167.89.75.164 ip4:192.237.159.42 ip4:192.237.159.43 ip4:159.112.242.162 ip4:159.135.228.10 ip4:198.244.56.107 ip4:198.244.56.108 ip4:198.244.56.109 ip4:198.244.56.111 ip4:198.244.56.112 ip4:198.244.56.113 ip4:198.244.56.114 ip4:198.244.56.115 ip4:204.220.181.105

    2. ~allMarks as suspicious (softfail) every other sender, whoever it is.
  7. include:_spf.salesforce.com1 lookupAllows any sender that the SPF record of _spf.salesforce.com allows.
    Open _spf.salesforce.com: 2 terms, 1 lookup inside
    1. exists:%{i}._spf.mta.salesforce.com1 lookupAllows the sender when the name %{i}._spf.mta.salesforce.com has an A record (an advanced test).
    2. -allRejects every other sender, whoever it is.
  8. -allRejects every other sender, whoever it is.

How to use the SPF Record Checker

  1. Type a domain, a web address or an email address into Domain to check. Only the domain part is used.
  2. Press Check SPF record and wait a second or two while the lookup runs.
  3. Read the big line at the top, then the What to know list for problems and warnings.
  4. Open the term list to see each part in plain words and the records it pulls in. Press Copy result to keep a text version.

What does an SPF record do?

An SPF record is a line of text in a domain's DNS that lists the servers allowed to send email using that domain. SPF stands for Sender Policy Framework, and RFC 7208 defines it. A receiving mail server looks at the domain in the message's envelope sender, fetches this record, and checks whether the connecting server's IP address is on the list. The answer is a result such as pass, fail or softfail, which the receiver can use when it decides where the message goes.

The record is published as a TXT record and always begins with v=spf1. After that come terms separated by spaces. Each term either names a source of allowed servers (an IP range, a domain whose servers you trust) or says what to do with everyone else. The checker fetches that text, splits it into terms and explains each one, so you do not need to read the grammar yourself.

SPF on its own does not stop someone forging the From address that people see. It speaks only about the envelope domain. That gap is why DMARC exists, and a domain that cares about spoofing usually has both. This page checks SPF only; the DMARC checker reads the policy that builds on it.

How do I read the parts of an SPF record?

Take the record v=spf1 ip4:192.0.2.0/24 mx include:_spf.example.net -all. It has 4 terms after the version tag. The first lets a block of 256 addresses send. The second, mx, trusts the servers in the domain's own MX records. The third hands part of the decision to another domain, and the last, -all, closes the list. The table below shows the plain meaning the tool prints for each kind of term.

A term can start with a qualifier. A plus (the default when nothing is written) means pass, a minus means fail, a tilde means softfail and a question mark means neutral. Qualifiers matter most on the final all, because that is what unlisted senders hit. A minus asks receivers to reject them, a tilde asks them to treat the mail with suspicion, and a plain plus lets everyone through.

What the checker says for common terms
TermPlain meaningCosts a lookup?
ip4:192.0.2.0/24Allows the IPv4 range 192.0.2.0/24 (256 addresses).No
mxAllows the servers named in the MX records of example.com.Yes
include:_spf.example.netAllows any sender that the SPF record of _spf.example.net allows.Yes
-allRejects every other sender, whoever it is.No
~allMarks as suspicious (softfail) every other sender, whoever it is.No
?allTakes no side on (neutral) every other sender, whoever it is.No
+allAllows every other sender, whoever it is.No
ptrAllows hosts whose reverse DNS name ends in example.com. Slow and unreliable; RFC 7208 says it should not be published.Yes

Terms are read from left to right and the first one that matches decides the result. A redirect= term is different: it applies only if nothing else matched, and RFC 7208 says it is ignored when the record also contains an all term.

What is the limit of 10 DNS lookups in SPF?

RFC 7208 section 4.6.4 tells receivers to stop at 10 terms that cause a DNS query. The terms that count are include, a, mx, ptr and exists, plus the redirect modifier. IP ranges cost nothing because they need no lookup. The example record above has 2 counted terms at the top level (the mx and the include), and then everything inside _spf.example.net adds to the total.

That nesting is why the limit is easy to pass by accident. In the recorded sample of cloudflare.com, the top-level record has 6 include terms, which is 6 lookups before any of those records is opened. One of the included records has an include of its own, so the true total is 7. The checker opens every include and redirect, adds the numbers and shows the tree so you can see which service is expensive.

Going over 10 is not a warning in the receiver's eyes. The result becomes a permanent error, and DMARC then treats SPF as failed. The usual cures are to drop services you no longer use, replace an include with the IP ranges it lists (watch for changes), or send some mail from a subdomain that has its own record. The tool also flags a total of 8 or 9, so you notice before the next vendor tips it over.

Two more limits sit beside the 10. A void lookup is a question whose answer is empty or says the name does not exist, and RFC 7208 says implementations should stop after two of them. An mx term may not cause more than 10 address lookups, so a domain that lists 11 mail servers breaks it. The checker resolves every a, mx and exists term, and every include, to count both. It shows the void total as a chip, such as 0 / 2, and writes under each term what the lookup found. A lookup that fails or uses a macro is left uncounted, not guessed.

Why does my SPF check fail with two records, +all or a missing include?

A domain must publish exactly one SPF record. If DNS returns two records that start with v=spf1, RFC 7208 says the receiver returns a permanent error, so neither record works. This happens when two services each tell you to "add this TXT record". Merge their terms into one line instead.

An include: of a domain that has no SPF record is also an error, not a harmless skip. Typos in the include name are the usual cause. A record that ends in +all authorises every server on the internet, which makes the record meaningless, and a missing all leaves unmatched senders with a neutral result. The checker prints each of these in the What to know list, with the domain concerned.

The ptr term is flagged because RFC 7208 says it should not be published: it needs extra reverse lookups and is unreliable. A term the standard does not define, such as a misspelt mechanism, breaks the record as a whole.

What does this tool send over the network?

Only the domain you type, and only after you press the button. It goes to Google Public DNS as an ordinary DNS question over HTTPS, followed by one question for each domain in the include tree and for each host named by an a, mx or exists term. If Google cannot be reached, the same questions go to Cloudflare's 1.1.1.1 service instead. Nothing else you type is sent, there is no account, and the page makes no request when it loads.

Both services cache answers, so a record you changed minutes ago may show its old value until the old time to live runs out.

Use it with

Questions

How do I check the SPF record of a domain?

Type the domain, press Check SPF record and read the result. The tool fetches the TXT records, picks the one that starts with v=spf1, explains each term and counts the DNS lookups.

What is the SPF lookup limit?

Ten. RFC 7208 counts the include, a, mx, ptr and exists terms and the redirect modifier, including those inside includes. IP ranges do not count. Over 10 gives a permanent error. Two void lookups and 10 addresses per mx term are separate limits.

Can a domain have two SPF records?

No. Two records that start with v=spf1 make the check return an error. Combine them into one record.

Is ~all or -all better?

~all (softfail) marks mail from unlisted servers as suspicious, and -all (fail) asks receivers to reject it. Both are valid. The example record v=spf1 ip4:192.0.2.0/24 mx include:_spf.example.net -all uses -all.

Why does the checker say a domain has no SPF record?

No TXT record at that exact name starts with v=spf1. The record must be on the domain itself, and a subdomain that sends mail needs its own unless it is covered by a redirect.

Does the SPF checker send my data anywhere?

It sends the domain name, and the names found in its record, to Google Public DNS (or Cloudflare if Google is down) when you press the button. That is all that is sent.

How this page was made: the tool's results are computed in your browser by the code on this page, using the sources listed above; the explanations were drafted with AI help and checked against the tool's own output.