SPF Flattener
Flatten an SPF record
Tool features
Full-tree resolution
Before / after lookup count
Keep chosen includes
CIDR merging and splitting
What is SPF flattening & how it works
Every include:, a, mx, ptr, exists: and redirect= in an SPF record costs a DNS lookup, and so does everything nested inside the includes. RFC 7208 caps the total at 10. Past that, receivers stop and return permerror — SPF fails for every message, and DMARC loses SPF alignment with it.
Flattening resolves those mechanisms ahead of time and publishes the IP ranges they point at as ip4:/ip6: terms, which cost no lookups. This tool walks the whole tree, inlines only the includes that can be inlined without changing what the record authorises, merges overlapping ranges, and splits the result into TXT records that fit in a DNS answer.
How to use this tool
example.com.