Skip to content
Hookgap

SPF lookup counter

SPF allows at most 10 DNS lookups, including the ones nested inside your email tools' own records. Go over the limit and SPF fails for every message.

Why SPF records break

Microsoft 365, a CRM, a newsletter tool and a help desk can use eight or more lookups between them. Each new tool someone adds pushes the record closer to the limit, and nothing warns you when it passes 10. The full explanation, with fixes, is in the SPF 10-lookup limit.

How this counter works

It reads the domain's SPF record over public DNS, then follows each include: and redirect= and counts every mechanism that needs a lookup, the way a receiving mail server does under RFC 7208. It stops early once the count passes 10.

Frequently asked questions

What counts toward the SPF 10-lookup limit?

Every include:, a, mx, ptr and exists: mechanism and the redirect= modifier costs one DNS lookup, including the ones nested inside the records you include. ip4:, ip6: and all are free.

What happens when SPF needs more than 10 lookups?

The receiving server stops and returns a permanent error (permerror). Most receivers treat that as an SPF failure for every message, which can hurt delivery and DMARC results.

How do I reduce SPF lookups?

Remove senders you no longer use, move bulk mail to a subdomain with its own SPF record, rely on aligned DKIM for tools that support it, and only flatten includes to IP ranges with a process that keeps them current.