Skip to main content
🛡️ SPF + DMARC Combined 📜 SPF Checker 🔒 DMARC Checker 🚀 Full Deliverability Audit

Free SPF Record Checker & Validator

Look up any domain's v=spf1 TXT record, verify -all or ~all enforcement, and check whether it exceeds the RFC 7208 10-DNS-lookup limit.

⚡ Quick Test:

RFC 7208 SPF Architecture & The 10-DNS-Lookup Ceiling Explained

Sender Policy Framework (SPF, RFC 7208) allows a domain owner to publish a single v=spf1 TXT record listing every CIDR block and third-party Email Service Provider (ESP) authorized to transmit mail for the envelope RFC 5321.MailFrom (Return-Path) domain. When a receiving MTA accepts a connection, it evaluates your SPF mechanisms from left to right.

To protect receiving mail servers against DNS amplification attacks, RFC 7208 Section 4.6.4 enforces a hard ceiling of 10 DNS-querying mechanisms per SPF evaluation. Every top-level include:, a, mx, ptr, exists:, or redirect=—plus every nested lookup inside your ESPs' own SPF records—counts toward that budget of 10. If evaluation reaches lookup #11, the receiving server aborts immediately with an SPF PermError, causing authentication to fail across Gmail, Microsoft 365, and Yahoo.

SPF Mechanisms, Qualifiers & Lookup Cost Matrix

Mechanism / Qualifier DNS Lookup Cost RFC 7208 Evaluation Behavior 2026 Engineering Recommendation
ip4: / ip6: 0 Lookups Matches connecting IP against literal IPv4/IPv6 address or CIDR range. Preferred for dedicated MTA IPs; costs zero DNS budget.
include:domain 1 + Nested (1–4) Recursively evaluates another domain's SPF record (e.g. _spf.google.com). Audit regularly; remove unused SaaS/CRM vendors immediately.
a / mx 1 (+ MX A lookups) Authorizes the domain's own A/AAAA records or MX host IP addresses. Replace with explicit ip4: when possible to save lookups.
ptr 1+ (Deprecated) Performs slow reverse-DNS pointer queries during SMTP handshake. Never use; explicitly deprecated by RFC 7208 Section 5.5.
~all (SoftFail) vs -all (Fail) 0 Lookups Terminal catch-all rule applied to any sender IP not matched earlier. Always end with ~all or -all; never publish +all or ?all.

Need to construct a clean record from scratch? Open our interactive SPF Record Generator, check your mail exchanger priority with the MX Lookup Tool, or verify your subscriber list before sending with the Bulk Email Cleaner.

SPF Record Checker FAQ

What is an SPF record and why does RFC 7208 limit DNS lookups to 10?

An SPF (Sender Policy Framework) record is a v=spf1 DNS TXT entry listing every IP address and third-party ESP authorized to send email from your root domain or envelope Return-Path. Section 4.6.4 of RFC 7208 caps DNS-querying mechanisms (include, a, mx, ptr, exists, redirect) at 10 total recursive lookups to prevent denial-of-service amplification; lookup #11 triggers an immediate PermError and causes SPF authentication to fail.

Which SPF mechanisms count toward the 10-DNS-lookup ceiling?

Six mechanisms cost DNS lookups: include, a, mx, ptr (deprecated), exists, and the redirect modifier, plus every nested include inside third-party ESP records. By contrast, ip4, ip6, and all require zero DNS queries and never increment the lookup counter.

Should my SPF record end with ~all (SoftFail) or -all (HardFail)?

Both ~all (SoftFail) and -all (HardFail) mark unauthorized sending servers as failing SPF. When paired with an enforced DMARC policy (p=quarantine or p=reject), major mailbox providers like Gmail and Microsoft 365 recommend ~all or -all so DMARC alignment evaluates both SPF and DKIM cleanly without prematurely rejecting legitimate forwarded messages.

Can a domain publish two v=spf1 TXT records on the same hostname?

No. RFC 7208 Section 3.2 strictly requires a domain to publish at most one v=spf1 TXT record per hostname. Publishing multiple v=spf1 records causes receiving MTAs to abort with a PermError. Always merge all authorized include: and ip4:/ip6: mechanisms into a single v=spf1 string, or isolate marketing streams onto dedicated subdomains.

RFC 7489 DMARC RUA XML Inspector · 100% Client-Side Zero-PII

DMARC Aggregate Report (rua XML) Analyzer

Drop any daily DMARC .xml report sent by Google, Yahoo, or Microsoft to inspect SPF/DKIM alignment by sending IP, spot spoofing attempts, and verify readiness for p=quarantine or p=reject.

Advertisement