Check a domain's SPF record
Enter a domain, then click "Check SPF".
SPF records define which mail servers are authorized to send email for your domain.
SPF = Sender Policy Framework
Format:
v=spf1 ip4:192.0.2.0/24 include:_spf.example.com -all
Using Google DNS over HTTPS
SPF guide
SPF record generator
Build your SPF record step by step.
Record preview
v=spf1 ip4:192.0.2.1 include:spf.protection.outlook.com -all
DNS lookup limits
Important: SPF records are limited to a maximum of 10 DNS lookups. Each include:, a:, mx:, and redirect= counts as one lookup.
| Mechanism | Lookups |
|---|---|
| ip4/ip6 | 0 (direct IP) |
| include: | 1 + lookups in included record |
| a: | 1-2 (A + AAAA) |
| mx: | 1-2 + MX lookups |
SPF mechanism reference
| Mechanism | Description | Example |
|---|---|---|
ip4: | Matches specific IPv4 address or range | ip4:192.0.2.0/24 |
ip6: | Matches IPv6 address or range | ip6:2001:db8::/32 |
a: | Matches domain's A/AAAA records | a:mail.example.com |
mx: | Matches domain's MX servers | mx or mx:example.com |
include: | Includes another domain's SPF | include:spf.protection.outlook.com |
exists: | Tests if domain exists | exists:%{i}.spf.example.com |
redirect= | Redirects to another SPF | redirect=_spf.example.com |
exp= | Explanation for failures | exp=explain._spf.example.com |
Qualifiers
| Qualifier | Meaning | Result |
|---|---|---|
+ | Pass (default) | Pass |
- | Fail (hard fail) | Fail |
~ | SoftFail | Warning |
? | Neutral | Neutral |
SPF best practices (2026)
- Use -all (hard fail) - Soft fails (~all) can be ignored by some receivers
- Stay under 10 DNS lookups - Each include: counts against this limit
- Avoid PTR mechanism - Deprecated and unreliable
- Only one SPF record per domain - Multiple records cause "permerror"
- Use ip4/ip6 instead of a/mx when possible - Saves DNS lookups
- Keep record under 512 bytes - Avoid UDP packet fragmentation
Common issues
Too many DNS lookups: If your SPF has more than 10 lookups, receivers will reject it with "permerror"
Recursive includes: An include loop (e.g., A includes B, B includes A) will hit the 10-lookup limit
Void lookups: More than 2 void lookups (domains that don't exist) cause permerror
Other SPF tools
- EasyDMARC SPF ToolsCheck, generate & validate SPF
- DMARCIAN SPF SurveyDetailed SPF analysis
- Kitterman SPF ValidatorClassic SPF testing tool
- Mail TesterFull email authentication check