Advertisement

SPF Record Checker

Check your SPF record, count DNS lookups against the limit of 10, or generate a new SPF record.

Last updated:

SPF Checker and Generator
Lookup count · Include tree · Generator
Try: Try:

How to Check or Create SPF

1
Enter your domain and press Check SPF
2
Read the lookup count, policy and issues
3
Switch to Generate SPF to build a correct record

All lookups go to Google Public DNS; nothing is stored.

What Is an SPF Record?

SPF Syntax in One Table

PartMeaning
v=spf1Start of every SPF record
include:_spf.google.comAllow another provider's servers
ip4:203.0.113.10Allow one IPv4 address or range
ip6:2001:db8::/32Allow an IPv6 range
a / mxAllow your website or mail server IPs
~allSoft fail everything else (recommended start)
-allHard fail everything else (strict)

The 10 DNS Lookup Limit

SPF Records for Popular Senders

SenderAdd this
Google Workspaceinclude:_spf.google.com
Microsoft 365include:spf.protection.outlook.com
Amazon SESinclude:amazonses.com
SendGridinclude:sendgrid.net
Mailguninclude:mailgun.org
Salesforceinclude:_spf.salesforce.com
India senderAdd this
Zoho Mail (India data centre, zoho.in accounts)include:zoho.in
Zoho Mail (global)include:zoho.com
Hostinger Emailinclude:_spf.mail.hostinger.com
GoDaddy emailinclude:secureserver.net

~all vs -all

Common SPF Mistakes

Complete Email Authentication

Frequently Asked Questions

How do I check my SPF record? +

Enter your domain and press Check SPF. You will see the record, lookup count, policy and any problems.

What is the SPF 10 lookup limit? +

An SPF check may use at most 10 DNS lookups for include, a, mx, ptr, exists and redirect, including nested ones. Going over makes SPF fail.

Can I have two SPF records? +

No. Two SPF records make SPF fail. Merge them into one TXT record.

Should I use ~all or -all? +

Start with ~all. Move to -all once you are sure every service that sends your email is listed.

What is SPF permerror? +

A permanent error, usually from too many lookups, two SPF records or bad syntax. Receivers treat it like no SPF.

Do I need SPF for Gmail? +

Yes. Gmail requires SPF or DKIM for all senders, and SPF, DKIM and DMARC for bulk senders.

About the creator Prajwal Karkera, creator of ToolsFlow

Built and maintained by Prajwal Karkera, a digital product specialist with 8+ years of experience in digital products. Found a problem with this tool? Let us know through the Contact page.
Read more about me →