SPF "too many DNS lookups": what it means and how to fix it
Updated November 26, 2026
Your SPF record is the list of services allowed to send email as your domain. When an email provider checks it, some parts of the list make the provider look up more information in DNS. The SPF standard allows no more than 10 of these lookups for one check. If checking your record takes more than 10, providers stop and mark your SPF as broken (a "permanent error"). Because the error comes from the record itself, it happens on every email you send, not just some of them.
Your email may still be delivered, especially if DKIM is set up, which is why this problem often goes
unnoticed. But without working SPF, any service that relies on SPF alone fails DMARC, and its email is more
likely to land in spam or, if you use p=quarantine or p=reject, be blocked.
An example SPF record, explained
An SPF record is a TXT record on your domain. Here's a typical one:
v=spf1 a mx ptr include:spf.protection.outlook.com include:servers.mcsv.net include:sendgrid.net ~all
| Part | What it means | Lookups |
|---|---|---|
v=spf1 | "This is an SPF record." Always first. | 0 |
a | The server your domain name points to (usually your website) may send email. | 1 |
mx | The servers that receive your email may also send it. | 1 |
ptr | An old, slow method of matching server names. The SPF standard says not to use it. | 1 |
include:spf.protection.outlook.com | Microsoft 365 may send email for you. An include means "also allow everything on this service's own list". | 1, plus any inside its list |
include:servers.mcsv.net | Mailchimp may send email for you. | 1, plus any inside its list |
include:sendgrid.net | SendGrid may send email for you. | 1, plus any inside its list |
~all | Treat email from anywhere else as suspicious. | 0 |
Other parts you may see: ip4: and ip6: list specific server addresses and cost no
lookups. redirect= and exists: are rare and cost 1 each.
Why the count is higher than it looks
An include: doesn't list any servers itself. It tells the email provider, "go and read this
service's own SPF record too." That service's record is a separate list, published and changed by the service,
and it can contain includes of its own. The provider follows every one of them, and each one counts toward
your 10.
Here's an example with a made-up email service. Your record has a single include:
v=spf1 include:spf.mailer.example ~all
To check it, the provider looks up spf.mailer.example (lookup 1) and finds the service's own
record:
v=spf1 include:us.mailer.example include:eu.mailer.example ~all
That record has two more includes, so the provider looks up us.mailer.example (lookup 2) and
eu.mailer.example (lookup 3). Your record shows one include, but it uses three lookups.
Add a few services like that and you can pass 10 even though your record looks short. The total can also change when a service updates its own record, without you changing anything.
The free check follows every include and counts the full total for you.
How to fix it
1. Remove services you no longer use
This is the safest fix, and usually enough. Look at each include: in your record and ask
whether you still use that service to send email. An old website host, an email marketing tool you switched away
from, or a trial you never finished are common leftovers. Remove those includes.
Not sure what an include is for? Search its name: for example sendgrid.net is SendGrid and
mcsv.net is Mailchimp. Better still,
a free SpoofResist account shows every service that has actually sent email as
your domain recently, by name, so you can see which includes are still in use before you remove anything.
2. Remove a, mx and ptr if you don't need them
Many records include a or mx out of habit. They only matter if your website's
server or your incoming mail server also sends email itself. If your email goes through a service like
Google Workspace or Microsoft 365 that you already list with an include, they're usually not needed. Remove
ptr in any case.
If you're not sure, ask whoever set up your website or email before removing a or
mx.
3. Check whether each service needs its include at all
Many email marketing tools send with their own "return address" behind the scenes, so the include in your record isn't what makes their email pass. They pass DMARC using DKIM instead (often called "domain authentication" in their settings). Check each service's current setup instructions. If it doesn't ask for an SPF include, and its DKIM is set up for your domain, you can remove its include.
4. Move some senders to a subdomain
Services that send marketing or automated email can often send from a subdomain like
news.yourbusiness.com, which has its own SPF record and its own limit of 10. This takes more setup,
so it's usually done with the service's help.
A word about "flattening"
Some tools suggest "flattening" your record: replacing includes with the list of server addresses
(ip4: and ip6:) they point to. That gets you under the limit, but services change their
addresses without warning, and a flattened record doesn't update itself. When that happens, real email starts
failing. Only flatten if you use a service that keeps the record updated for you automatically.
After you change your record
- Keep one SPF record. Edit the existing one; don't add a second (two SPF records break SPF too).
- Keep the ending (
~allor-all) at the end. - Run the free check again to see your new lookup count.
Check your domain for free
Our free check reads your domain's SPF, DKIM and DMARC records and tells you in plain English what's wrong and how to fix it. No account needed, and we don't save what you check.