Free tool · no sign-up

SPF flattening calculator

Paste an SPF TXT record: we count DNS lookups across the whole include and redirect chain, show whether you hit the limit of 10, and expand the targets into static ip4:/ip6:.

SPF record

The whole line, starting with v=spf1. Up to 4096 characters. The record is parsed and the lookups counted immediately, with no network calls.

The breakdown appears here

Paste an SPF record on the left and press “Count the lookups”. We show the DNS lookup count, the include targets and the limit state.

How to use it

What SPF flattening is and when you need it

The receiver counts DNS lookups across the whole include chain. Past 10, SPF fails and the message loses DMARC alignment.

01Look at the real counter first

A record with ten includes looks fine, but lookups are counted recursively: every include adds the lookups of its own SPF. This tool counts exactly like the receiver does.

Check SPF →
02Only flatten what actually hit the limit

Flattening turns a dynamic chain into a static address list. The limit goes away, but the record stops updating itself when the provider changes IPs.

DNS record generator →
03Check the result against the original

Before publishing, compare the expanded record with the original: no authorised address may be lost and none may be added.

Check DMARC →
04Keep a way back

Store the original record next to the expanded one: when you switch ESP or IPs you need it to get back to the include chain quickly.

DNS monitoring →

Delivery monitoring

How to hear about an IP change before it breaks SPF

One expansion shows the state as it is right now. Monitoring watches the record and what happens to delivery after changes:

DNS change history

Shows when the SPF record changed and exactly what left the include, before delivery drops.

Fresh DNS check

SPF, DKIM, DMARC, MX and TLS are re-checked, so a broken or extra record is noticed immediately.

Sending IPs

The domain's IP list shows what the provider actually sends from, and that is what the expanded record is checked against.

Deviation alerts

Threshold rules notify the team when the failure rate leaves the normal range.