Free SPF Record Checker

Free SPF checker: validates your SPF record, expands every include and redirect, counts DNS lookups against the limit of 10 and flags +all, ptr and duplicates.

  • Queries Cloudflare public DNS
  • Instant, in your browser
  • 100% free, no signup
Loading tool…
Read the complete guideHow to Fix "SPF PermError: Too Many DNS Lookups" Step by Step →

About the SPF Record Checker tool

SPF (Sender Policy Framework) is a TXT record listing the servers allowed to send e-mail for your domain. Receiving mail servers check it on every message, and Google, Yahoo and Microsoft now require it for bulk senders. The trouble is that SPF breaks in quiet ways: two SPF records instead of one, a typo in an include, or — most often — more than 10 DNS lookups once every marketing and helpdesk tool has added its own include.

This SPF record checker fetches your record, explains every mechanism and qualifier, and follows each include and redirect recursively, building a tree of the entire policy. It counts the terms that trigger DNS lookups (include, a, mx, ptr, exists and redirect) across all levels and compares the total with the RFC 7208 limit of 10, and also counts void lookups against the limit of 2. It flags multiple SPF records, +all, the deprecated ptr mechanism, invalid IP ranges, unknown mechanisms, include loops and includes that have no SPF record. It also lists how many IPv4 and IPv6 ranges your policy authorises.

All lookups are made from your browser to Cloudflare's DNS-over-HTTPS resolver; only the domain names in your SPF tree are sent.

How to use SPF Record Checker

  1. Enter your domain (the part after @ in your From address).
  2. Click “Check SPF”.
  3. Check the lookup counter — it must stay at 10 or below.
  4. Read the findings, sorted with errors first.
  5. Expand each record in the “Include tree” to see what every term means; highlighted terms cost a lookup.

Features

Recursive include tree

Every include and redirect is expanded, showing which service adds how many lookups.

10-lookup and void-lookup limits

Counts lookup-causing terms across the whole tree and warns before you hit PermError.

Specific error messages

Detects duplicate SPF records, +all, ptr, invalid ip4/ip6, unknown mechanisms, loops and missing includes.

Term-by-term explanation

Each mechanism and qualifier (+, -, ~, ?) is described in plain English.

When to use it

  • Find which include pushes your SPF over 10 DNS lookups after adding a new e-mail tool.
  • Check SPF before meeting Gmail and Yahoo bulk-sender requirements.
  • Audit a client's SPF for +all or other settings that let anyone spoof them.
  • Confirm that merging two SPF records into one worked.

Frequently asked questions

What is the SPF 10 DNS lookup limit?

RFC 7208 lets receivers perform at most 10 DNS lookups while evaluating SPF. Each include, a, mx, ptr, exists and redirect counts, including those inside included records. Exceeding it gives PermError, which DMARC treats as an SPF fail.

Should I use ~all or -all?

Both are fine once your record is complete. ~all (SoftFail) is the common choice when you also have DMARC, which makes the final decision. -all asks receivers to reject unlisted senders outright.

Can I have two SPF records?

No. A domain must publish exactly one v=spf1 TXT record. With two, receivers return PermError. Merge all mechanisms into a single record.

How do I reduce the number of lookups?

Remove includes for services you no longer use, replace a and mx with ip4/ip6 ranges where they are stable, and use subdomains for bulk senders so they don't need to be in your main SPF. Flattening services can also convert includes to IP lists.

Does SPF alone stop spoofing?

No. SPF checks the hidden Return-Path address, not the From address people see. You need DMARC together with SPF and DKIM to protect the visible From domain.

Related tools