ThawStack

SPF "Too Many DNS Lookups": What It Means and How to Fix It

Updated November 22, 2026 · 6 min read

Short answer: SPF is only allowed 10 DNS lookups each time a receiving server checks it. Go over, and the check ends in an error that counts as a failure, so your SPF fails for every email you send, even though the record looks fine. Fix it by removing services you no longer use and cutting lookups that aren't needed until the total is 10 or fewer.

What the error actually means

Your SPF record is a list of the servers allowed to send email for your domain. When a mailbox provider like Gmail checks it, some parts of the list make it go and look up more DNS records. The SPF standard (RFC 7208) caps those lookups at 10 per check. Once a check needs more than that, the receiver stops and returns a "permanent error" (often shown as permerror).

That matters because DMARC treats an SPF permanent error as a failure. So a domain can have a perfectly normal-looking SPF record that silently fails everywhere, and the first sign is usually emails drifting into spam.

What counts toward the 10

Part of the recordCounts?
include:Yes — 1, plus everything inside the record it points to
a, mx, exists, ptrYes — 1 each
redirect=Yes — 1
ip4:, ip6:, allNo

The catch is the first row. An include: counts once for itself and again for every lookup inside the record it points to, and so on down the chain. Google Workspace is the classic example: include:_spf.google.com points to three more records, so that one line uses 4 of your 10 lookups. Add a CRM, a help desk, a newsletter tool and a billing tool, each with its own include, and you can pass 10 without noticing.

There's a second, lesser-known limit too: the standard recommends allowing no more than 2 "void" lookups, meaning lookups that come back empty. An include left over from a tool you cancelled can point to a record that no longer exists, and enough of those can break SPF on their own.

Not sure how many lookups you're using?. ThawStack checks your SPF, DKIM and DMARC live and writes the exact records to fix them. Free, no signup.

Check my domain

How to fix it

  1. Count your real total. Counting by eye misses the nested lookups. Use a checker that follows every include (the ThawStack audit does this and shows the running count).
  2. Remove services you no longer use. This is the most common fix. Old email tools, past newsletter platforms and trial software often stay in SPF for years.
  3. Drop ptr entirely. The standard itself says not to use it.
  4. Remove a or mx if those servers don't send mail. Many records include them by default even when the website or inbound mail server never sends anything.
  5. Move a sender to a subdomain. For example, send your newsletter from news.yourdomain.com with its own SPF record. Each subdomain gets its own budget of 10.
  6. Replace an include with fixed IP addresses only if the provider tells you to. This saves lookups, but if the provider changes its servers later your SPF breaks without warning. Paid "SPF flattening" services automate this and keep the IPs updated.

Mistakes that cause the same symptoms

A note for cold email setups

If you send cold email from separate lookalike domains (which you should, so your main domain stays safe), each of those domains has its own SPF record and its own limit of 10. Keep them simple: usually just your email provider's include and ~all. Our guide on how many inboxes and domains you need covers the rest of that setup.

Run a free live audit on your domain. ThawStack checks your SPF, DKIM and DMARC live and writes the exact records to fix them. Free, no signup.

Check my domain

Sources

More guides