<!-- https://atriodmarc.com/tools/spf-checker/ | updated 2026-11-29 -->

Free SPF lookup checker

# Does your SPF record fit in 10 lookups?

Every service you add to SPF costs DNS lookups, and mail providers stop at 10. Over the limit, the whole record counts as an error and email stops being recognised.

## How SPF lookups are counted

The SPF standard (RFC 7208) lets a receiving mail server make at most 10 DNS lookups while it evaluates a record. These parts each cost one lookup, and they count inside every `include` too:

| Part | Costs a lookup? | Note |
|---|---|---|
| `include:` | Yes | Plus everything inside the included record |
| `a`, `mx` | Yes | One each |
| `exists:` | Yes |  |
| `redirect=` | Yes | Plus everything in the target record |
| `ptr` | Yes | Deprecated: replace it |
| `ip4:`, `ip6:`, `all` | No | Addresses cost nothing |

A second limit catches many domains too: more than 2 lookups that return nothing ("void lookups") is also an error for many mail providers.

## What happens over the limit

The receiving server returns a permanent error (`permerror`) for SPF. SPF then cannot pass for any sender, so DMARC can only pass through DKIM. Mail from services that do not sign with the domain's own DKIM key starts failing, and if the DMARC policy is quarantine or reject, it goes to spam or bounces.

## How to get back under 10

1. **Remove services you no longer use.** Old newsletter tools and help desks often stay in SPF for years.
2. **Rely on DKIM for services that sign with your domain.** If a service signs with an aligned DKIM key, DMARC can pass without it being in SPF. Check the reports before you remove it.
3. **Move a sender to a subdomain.** A newsletter tool sending from news.example.com gets its own SPF record and its own 10 lookups.
4. **Flatten the record.** Replace includes with the addresses behind them. Done by hand it breaks the moment a provider changes its addresses, so it has to be kept up to date.

**AtrioDMARC keeps it short for you.** When a domain's SPF needs 9 or more lookups, its Email protection page offers to keep the list short for $0.89 per domain per month: you replace the record once, and we keep the senders' addresses up to date every 30 minutes, holding back any change that looks wrong. [How it works](https://atriodmarc.com/features/#spf).

## SPF FAQ

**What is the SPF 10 DNS lookup limit?**

RFC 7208 limits the DNS lookups a receiving server makes while checking an SPF record to 10. include, a, mx, ptr, exists and redirect each count, including those inside every include. Over 10, SPF returns a permanent error and cannot pass.

**Can a domain have two SPF records?**

No. Two TXT records that start with v=spf1 are an error, and neither counts. Merge them into one record.

**Should SPF end with ~all or -all?**

Either is fine once DMARC is in place, because DMARC decides what happens to failing mail. ~all marks mail from unlisted senders as suspicious, -all fails it. Never use +all, which lets anyone send as the domain.

**On this page**

1. How lookups are counted
2. What happens over the limit
3. How to get back under 10
4. FAQ
