Skip to main content
New SPF lookups must resolve in milliseconds — why a DMARC tool's add-on isn't enough Learn Why → →

Free SPF Record Lookup

Enter any domain to retrieve its live SPF record from DNS. See the full record, count DNS lookups, expand every nested include, and flag RFC 7208 violations.

Type a domain to see its published SPF record, a mechanism-by-mechanism breakdown, and a live DNS lookup count.

What Is an SPF Record Lookup?

An SPF record lookup queries DNS for the Sender Policy Framework TXT record published at a domain's apex. The record declares which IP addresses, servers, and third-party services are authorized to send email on behalf of that domain. Receiving mail servers perform this lookup during every inbound SMTP transaction to verify the sender's identity.

This tool goes beyond a simple DNS query - it recursively expands every include, redirect, and nested mechanism, counts the total DNS lookups against the RFC 7208 limit of 10, and flags any syntax errors, void lookups, or deprecated mechanisms.

Why It Matters

Why Use the Free SPF Lookup Tool?

Live DNS, Every Time

The tool queries your domain's DNS in real time, so you see the record receivers are actually resolving right now - not a stale cache.

Recursive Include Expansion

Instead of one flat string, you get the full mechanism tree - every nested include, redirect, and the IPs each one authorizes.

Automatic Lookup Counting

It tallies every DNS lookup your record triggers, including the ones buried inside third-party includes, and flags you before you cross the RFC limit of ten.

Faster Than dig

A manual dig or nslookup shows the raw string but not the expanded tree or the lookup count. This turns a multi-step CLI session into a single query.

How Lookups Work

Understanding SPF Record Lookups

An SPF lookup is the DNS query a receiving mail server runs to find out which servers you have authorized to send email as your domain. It happens on every inbound message, so knowing how to run the same lookup yourself is the fastest way to see what receivers see.

How an SPF Lookup Works

Your SPF record is published as a DNS TXT record at your domain's apex (for example, at example.com, not _spf.example.com). When a message arrives, the receiver reads the envelope sender's domain, queries that domain's TXT records, finds the one beginning with v=spf1, and evaluates it against the connecting server's IP address. If the IP is authorized, SPF passes; if not, the qualifier on the record decides what happens next.

Reading the Raw SPF Record

A lookup returns a single line like this:

v=spf1 include:_spf.google.com include:sendgrid.net ip4:203.0.113.0/24 -all

Each token is a mechanism: include: pulls in another provider's authorized senders, ip4: authorizes an address or range directly, and the trailing -all tells receivers to reject anyone not matched. The raw string is only half the picture, though - the real work is expanding what those includes contain.

Recursive Include Expansion and Lookup Counting

Every include: is itself a domain with its own SPF record, which can contain further includes. This tool follows that chain all the way down, so a record that looks like three includes might actually resolve into a dozen DNS lookups. That matters because RFC 7208 caps evaluation at ten DNS-querying mechanisms (plus a limit of two void lookups); cross either and receivers return a PermError. If your expanded record is over ten, AutoSPF flattens the includes into a compact record and keeps it current - see too many DNS lookups.

Looking Up an SPF Record Manually

You can run the underlying query yourself from a terminal. On macOS or Linux:

dig TXT example.com +short

On Windows:

nslookup -type=TXT example.com

Both return the raw TXT records, including the SPF line - but neither expands nested includes or counts total lookups, which is why a purpose-built lookup tool is faster for anything beyond a quick glance.

When a Lookup Returns Nothing (or Fails)

  • No record found. The domain publishes no v=spf1 TXT record, so receivers have nothing to check the sender against.
  • Two records found. RFC 7208 allows only one; a second produces a PermError and both are ignored.
  • Subdomain has no record. Subdomains do not inherit the parent's SPF record - each sending subdomain needs its own.
  • PermError on the count. Valid syntax, but the expanded lookups exceed ten.

After the Lookup: Validate, Fix, and Cover DKIM and DMARC

Once you have the record, run it through the SPF validator to check it against every RFC rule, or rebuild it cleanly with the SPF record generator. And because SPF only covers the sending server, pair it with the free DMARC checker and DKIM lookup - DMARC is what ties SPF and DKIM to your visible From address. Look up your record whenever you add a sender, migrate providers, or see mail landing in spam.

Over the 10-lookup limit?

AutoSPF flattens your SPF record and keeps it updated every 15 minutes. Enterprise SLAs, SSO/SAML, audit logs, and DNS rollback included.

Rated 5/5 on G2 · Trusted since 2018

What Our Customers Say

"AutoSPF Flattens SPF Records Seamlessly & Keeps Changes Logged - I am quite pleased with the product"

It does what it promises to do, and does it very well. I appreciate that it keeps a log of changes made, which prevents many mistakes. A client's SPF record would have way too many lookups, but AutoSPF makes that problem go away. The length of the SPF record is typically not the issue; it's the amount of lookups in the record that are. AutoSPF "flattens" the record, automatically expanding the defined lookups to IP addresses or ranges. And it auto-updates the record when the un-flattened lookups change.
PJ

Peter J.

President · Small-Business (50 or fewer emp.)

"Helped us go beyond capacity"

AutoSPF did exactly as described, it helped us get past our 10 lookup limit. Afterwards, we hit another limit regarding overall capacity and when contacted, they quickly provided us with a new solution to eliminate capacity issues entirely going forward, so now we can add as many SPF records as needed. They also provided us with a personalized support video explaining their new method in its entirety using our instance as the example.
VU

Verified User

Financial Services · Mid-Market (51-1000 emp.)