Skip to content

How the 10 lookups are counted

What counts towards SPF's 10-lookup limit
MechanismCounts?Note
include:Yes, 1, plus everything inside itBig providers’ includes contain more includes
a, mxYes, 1 eachmx also looks up each MX host
exists, redirect=Yes, 1 each
ptrYesDeprecated; remove it
ip4:, ip6:, allNoFree: no DNS lookup needed

The free email domain checker follows every include and shows the real total for your domain.

Five ways to get under 10

  1. Remove services you no longer use. Old newsletter tools, a previous email provider, a CRM you left: each include can cost several lookups.
  2. Remove a, mx and ptr unless those servers really send your mail.
  3. Use ip4: for your own servers instead of an include or a: it costs no lookups.
  4. Send bulk mail from a subdomain (news.yourcompany.in) with its own SPF record, so your main record lists only everyday mail.
  5. Rely on DKIM for services that sign with your domain: DMARC passes on aligned DKIM alone, so some services do not need to be in SPF at all. Check each service’s instructions first.

Then rebuild one clean record with the SPF record generator, which warns before you pass the limit. More on the records in SPF, DKIM and DMARC explained.

Questions people ask

What is the SPF 10 DNS lookup limit?

RFC 7208 lets a receiver make at most 10 DNS lookups while checking one SPF record. Every include, a, mx, ptr, exists and redirect counts, including those inside the records you include. Over 10, the result is PermError and SPF fails.

Do ip4 and ip6 count towards the limit?

No. ip4, ip6 and all do not need a DNS lookup, so listing a server by its IP address costs nothing towards the 10.

Is SPF flattening a good idea?

It works by replacing includes with the IP addresses they currently contain, but providers change their addresses, so a flattened record goes stale and starts failing silently. Prefer removing unused services; flatten only with a service that updates the record for you.

Does a PermError stop my mail being delivered?

It makes SPF fail. If DKIM still passes for your domain, DMARC passes and most mail arrives, but receivers treat a broken SPF record as a warning sign, and mail that relies on SPF alone fails.

Try it on your own domain

Set up a real mailbox at your own domain, with every record checked for you. No card needed.