# SPF record checker: count your DNS lookups | DMARC Done

Canonical URL: https://dmarcdone.com/spf-checker

Free SPF checker

## Check your SPF record and count its DNS lookups

Enter your domain. We read your SPF record, follow every include, count the lookups against the limit of 10, and tell you how to fix each problem.

### What this SPF check looks at

SPF is one TXT record at your domain that starts with `v=spf1`. It lists the servers and services allowed to send email as you. Receivers look it up for each message, and DMARC uses the result.

The checker reads your record, follows every include and counts the DNS lookups the way RFC 7208 counts them. It flags the problems that make SPF fail:

- More than 10 DNS lookups. Each include, a, mx, ptr and exists term costs one, includes inside includes count too, and the redirect modifier counts as one. ip4, ip6 and all cost nothing.
- More than two lookups that find nothing (void lookups), usually includes for services you stopped using.
- Two SPF records on one domain. Receivers treat that as an error, so neither counts.
- Typing errors, an include that points nowhere, and a record that includes itself.
- An ending of +all, which lets every server in the world send as you, or no ending at all.

### What the 10-lookup limit means for you

RFC 7208 caps an SPF check at 10 DNS lookups. Above that, receivers stop and return a permanent error, and SPF does not pass. DMARC can then only pass through DKIM, so a single sender without DKIM becomes email that fails.

To get back under the limit, remove includes for services you no longer use. Our post on [SPF too many DNS lookups](https://dmarcdone.com/blog/spf-too-many-dns-lookups) goes through the other fixes step by step. To start a clean record, use the [SPF record generator](https://dmarcdone.com/spf-record-generator).

### What the result shows

Your record as published, the lookup count against the limit, the services we recognise from your includes, and each problem with its fix. Copy the link to share the result with whoever manages your DNS. For DMARC, DKIM and the exact records to paste for your provider, open the full report. We do not store the domains you check.

Setting up SPF at a specific provider? See the guides for [Microsoft 365](https://dmarcdone.com/guides/microsoft-365) and [Google Workspace](https://dmarcdone.com/guides/google-workspace), or [all setup guides](https://dmarcdone.com/guides).

### Questions about SPF

**What counts as a DNS lookup in SPF?**

The include, a, mx, ptr and exists mechanisms and the redirect modifier each cost one lookup, and lookups inside an include count toward your total. ip4, ip6 and all cost none. RFC 7208 section 4.6.4 sets the limit at 10.

**What happens when my SPF record needs more than 10 lookups?**

Receivers stop checking and return a permanent error (permerror), so SPF does not pass. DMARC can then pass only through DKIM.

**Can a domain have two SPF records?**

No. With two v=spf1 records, receivers return a permanent error and neither counts. Merge them into one record that lists every service and ends in a single \~all or -all.

**Should my record end in \~all or -all?**

\~all (softfail) asks receivers to treat email from servers you have not listed as suspicious. -all (fail) states that those servers are not allowed to send as you, and what happens to that email is up to the policy of each receiver. Start with \~all, and move to -all once every service that sends as you is listed.

**Do you store the domain I check?**

No. The check runs live against public DNS and the domain is not saved. The link you copy holds the domain in its address, so share it only with people who should see the result.

### More free tools

- [DKIM checker](https://dmarcdone.com/dkim-checker)
Looks up DKIM keys on the selector names popular email services use, plus one you enter, and grades each key.
- [DMARC record generator](https://dmarcdone.com/dmarc-record-generator)
Builds a DMARC record from your policy and report addresses, in your browser.
- [SPF record generator](https://dmarcdone.com/spf-record-generator)
Builds one SPF record from your mailbox provider and sending services, and counts its DNS lookups.
