Why flatten SPF?
Each include:, a, mx, and redirect= in your SPF record costs one DNS lookup, and the limit is 10. Add one too many email services and your SPF becomes a permerror, receivers ignore it entirely. Flattening replaces includes with their IP addresses: zero lookups.
The trade-off (honest version)
Static flattening freezes IPs, if a service you included rotates its sending ranges, your flattened record silently goes stale. Re-run this tool after adding senders, or use PromptDNS monitoring to get alerted when upstream records change.
Flattening trade-offs
| Lookups | Reduced to 0 |
| Maintenance | Re-run after adding senders |
| Risk | Stale IPs if upstream changes |
Frequently asked questions
Is SPF flattening safe for my email delivery?+
It can be, if monitored. Flattening replaces include: mechanisms with direct IP addresses, which stay under the 10-lookup limit. But if a provider changes their IPs, your flattened record becomes stale and legitimate mail breaks.
How often should I re-flatten my SPF record?+
Whenever your email providers change their sending infrastructure. Automated monitoring catches these changes; manual flattening requires you to check provider documentation regularly.
What is the alternative to SPF flattening?+
Move sending streams to dedicated subdomains so each gets its own 10-lookup quota. This is more resilient than flattening but requires DNS and provider changes.
Related tools
- SPF Record Checker, count your lookups first
- The SPF 10-lookup limit explained (guide)
- CIDR Calculator, summarize adjacent public IP ranges into minimal
ip4:andip6:blocks - DKIM record checker, verify cryptographic signing keys alongside flattened SPF
- DMARC Record Checker