Email Auth Check › Guides

SPF “too many DNS lookups”: how to fix the 10-lookup limit

SPF (RFC 7208) allows at most 10 DNS-querying mechanisms per check. Exceed it and the result is permerror, which many receivers treat as a fail.

What counts

Each include:, a, mx, ptr, exists: and redirect= counts as one, including those nested inside includes. ip4:, ip6: and all don’t count. Separately, more than two lookups that return nothing (“void lookups”) also cause a permerror.

Ways to reduce lookups

  1. Remove services you no longer use. Old newsletter or CRM tools are the usual suspects.
  2. Drop a and mx if those servers don’t send mail.
  3. Remove ptr; it’s deprecated.
  4. Move senders to a subdomain. Have marketing tools send from news.yourdomain.com with its own SPF record.
  5. Rely on DKIM for services that sign with your domain; DMARC passes on DKIM alone.
  6. Flatten carefully. Replacing includes with IP ranges works but breaks when providers change IPs, so only do it with an automated flattening service.

See exactly what your domain’s SPF, DKIM and DMARC look like, free.

Check my domain

Frequently asked questions

Can I have two SPF records to get around the limit?

No. Two v=spf1 records on the same name is itself a permerror. Merge them into one.

More guides