Skip to main content
Free tool

Check any domain's SPF record

Enter a domain to look up its SPF record. You'll see the record as published, how many of the 10 allowed DNS lookups it uses, what each part does, and what to change.

Free · no signup · reads public DNS records only

Look up a domain's SPF record

We look up public DNS records. We don't store the domain.

Your SPF record appears here, with what each part means and what to fix.

Check an SPF record before you publish it

Checked in your browser. Nothing is sent anywhere.

What an SPF record does

SPF (Sender Policy Framework) is a TXT record on your domain that lists the servers allowed to send email as you. A receiving server compares the server that delivered a message with that list.

A domain has exactly one SPF record. It starts with v=spf1, names your senders with include:, ip4: or ip6:, and ends with an all term that says what to do with mail from anywhere else.

How to read the result

The checker gives SPF one of three results.

  • Pass: one record, 10 DNS lookups or fewer, ending in -all.
  • Check: the record finishes with ~all (soft fail), so mail from servers not listed is accepted but treated as suspicious. Switch to -all once every service that sends for you is listed.
  • Fail: no record, two or more records, more than 10 lookups, or an ending like +all that lets any server send as you.

How to fix common SPF errors

Edit the TXT record at your DNS host, give it a few minutes to update, then check again here.

  • Two SPF records: merge them into one TXT record. Receivers treat two as an error, and SPF fails.
  • Too many lookups: remove includes for services you no longer use. Includes can hold more includes, and the total has to stay at 10 or fewer.
  • A sender is missing: if a tool sends email as your domain, add its include: to the record, or its mail fails SPF.
  • Finishes with +all or ?all: change it to ~all while you test, then to -all.
  • ptr in the record: replace it with ip4:, ip6: or include:. ptr is deprecated, and some receivers ignore it.

Who requires SPF

Gmail and Yahoo require SPF or DKIM from every sender. Bulk senders need SPF, DKIM and DMARC, and Gmail counts anyone sending more than 5,000 messages a day to Gmail accounts as a bulk sender. Outlook.com has required all three from domains sending more than 5,000 emails a day since 5 May 2025.

SPF on its own checks the server that sent the email, not the From address the reader sees. DMARC links the two, so check your DMARC record next, and DKIM in the domain health check.

FAQ

SPF record checker: questions

How do I check my SPF record?

Enter your domain at the top of this page. The checker reads the TXT records on your domain from public DNS, finds the one that starts with v=spf1, follows its includes to count DNS lookups, and tells you what to fix. In a terminal, dig +short TXT yourdomain.com shows the same record, and you can paste it into the box below the checker.

What is an SPF record?

An SPF record is a TXT record that lists the servers allowed to send email for your domain. It starts with v=spf1 and ends with an all term, such as -all, that tells receivers how to treat mail from servers that aren't on the list.

What's the difference between ~all and -all?

-all (hard fail) says mail from any server not listed should be rejected. ~all (soft fail) says it should be accepted but treated as suspicious. Use ~all while you're still finding every service that sends for you, then switch to -all.

What is the SPF 10 lookup limit?

A receiver makes at most 10 DNS lookups when it checks your SPF record. Each include:, a, mx, ptr, exists and redirect costs one, and the includes inside an include count too. Go over 10 and SPF fails for every email you send, so this checker counts them all.

Can a domain have two SPF records?

No. A domain can have only one SPF record. With two, receivers return an error and SPF fails. Merge the senders from both into a single record.

Does Gmail require SPF?

Gmail requires SPF or DKIM from everyone who sends to Gmail accounts, and SPF, DKIM and DMARC from anyone sending more than 5,000 messages a day. Yahoo has the same rule for bulk senders, and Outlook.com requires all three from domains sending more than 5,000 emails a day.

Why does my email go to spam when SPF passes?

SPF only proves a server may send for your domain. Where an email lands also depends on DKIM and DMARC, your domain's reputation, bounces and complaints, and the email itself. Check the rest of your setup in the domain health check.

No DNS work

Send cold email without editing DNS

Paste your website to request early access. ryhive takes care of SPF, DKIM and DMARC for the email it sends, so you don't have to touch a record.

Nothing goes out until you approve it.