๐ง SPF Record Generator
Build your SPF record step by step:
๐ 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 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