Your domain, checked and fixed.

Help · Email and spam

SPF flattening: pros, cons and safer options

Direct answerDNSFix help, reviewed 2026-11-12

Flattening swaps include: entries for the IP addresses behind them, to get under SPF's 10-lookup limit. It works, but breaks silently when a service changes its addresses.

At a glance
  1. What we found: 3 key facts.
    Why people do it
    10-lookup limit More than 10 DNS lookups makes SPF fail (RFC 7208).
    Risk
    Addresses change Services change their sending addresses without telling you.
    Try first
    Remove old services Most records go over the limit because of tools no longer used.

See if this affects you

Got a record from a chatbot or your web person? Check it before you paste it.

What flattening is

An SPF record may use at most 10 DNS lookups. Each include: costs at least one, and the services you include often add more. Flattening replaces each include with the IP addresses it points to (ip4: and ip6: entries), which cost no lookups.

Pros

Cons

Safer options, in order

  1. Remove services you no longer use. This fixes most records.
  2. Move a bulk sender to its own subdomain (for example news.yourbusiness.com) with its own SPF record.
  3. Rely on DKIM for tools that support it, so they don't need to be in SPF for DMARC to pass.
  4. If you still need flattening, use a service that re-checks the addresses automatically, and watch your DMARC reports.

Count your SPF lookups

Stop it happening again
DNSFix Pro checks your domain every 4 hours and emails you the step-by-step fix soon after we spot a problem. From $19 a month.

See plans

Questions

Is SPF flattening bad?

Not by itself, but a hand-flattened record breaks when a service changes its addresses. Only flatten with automatic updates.

How do I count my SPF lookups?

Run the SPF checker: it counts every lookup, including the ones inside each include.

Related

Product names belong to their owners. DNSFix isn't affiliated with them.

DNSFix Help
Hi, this is DNSFix Help. Ask anything about your domain or account. Answers come from our help library, and some are drafted by AI and say so. After any change, check your domain again: the report tests every record against the standard rules. Need more help? We'll follow up by email.