The SPF 10-Lookup Limit Explained

SPF evaluation is deliberately capped: receivers will follow at most 10 DNS lookups per record. Cross that line and your SPF doesn't get stricter, it stops working entirely, returning permerror.

Lookup cost per mechanism

MechanismLookups
include1 + nested
a / mx1
ptr1 (deprecated)
exists1
ip4 / ip6 / all0
Incoming mail connects from an IP Read SPF: v=spf1 ... first match wins match no match >10 lookups MATCH NO MATCH PERMERROR pass softfail broken
SPF evaluation: first match wins, lookup counting

What counts as a lookup

  • include: each one, and each nested include inside it
  • a and mx mechanisms (with or without a domain)
  • exists:
  • redirect=

What doesn't count: ip4: and ip6: (no DNS involved), all, and exp=. A typical Google Workspace + one ESP record starts at 2-3 lookups; add a helpdesk, a CRM, and a billing system and you can hit 10 before noticing.

Why the limit exists

Every lookup is a DNS query a receiver must make, per message, before it can even score your mail. Without a cap, a single crafted record could turn every inbound email into a DNS amplification attack. The cap is a DoS protection, and it's enforced strictly.

The three fixes

  • Remove dead includes. Every service you stopped using is still spending lookups. Audit first.
  • Flatten. Replace includes with their IP ranges: zero lookups, at the cost of tracking upstream changes. Our free flattener does this automatically.
  • Use SPF on fewer subdomains and keep separate records per sending domain instead of one mega-record.

Check where you stand

The SPF checker counts your lookups with a live meter. If you're above 8, flatten before the next SaaS you add tips you over.

Frequently asked questions

Do ip4 ranges count toward the limit?+

No. ip4 and ip6 are answered from the record itself and cost zero lookups. Only include, a, mx, ptr, exists, and redirect consume the budget.

What happens exactly at 11 lookups?+

Evaluation stops and receivers return permerror: the record stops protecting the domain, and mail may fail authentication.

Does the checker follow nested includes?+

Yes, the PromptDNS SPF Record Checker follows nested include: and redirect= chains recursively and counts both total DNS lookups and void lookups.

Last verified: 2026-11-29