SPF record checker
Look up a domain's SPF record, follow every include, count DNS lookups against the 10-lookup limit and see what the all policy does.
| Term | Type | Meaning | Lookups |
|---|
Lookup tree
Runs in your browser. Nothing is sent to Dizo. TXT records come from public DNS-over-HTTPS (cloudflare-dns.com), queried directly by your browser.
How to use it
- Type a domain such as
acme.com. A full URL or an email domain works too; the tool trims it to the host. - Press Check SPF. Your browser fetches the TXT records over DNS-over-HTTPS and picks the one that starts with
v=spf1. - Read the summary: the lookup count out of 10, the policy set by the
allterm, and any errors or warnings. - Use the table to see what each mechanism allows, and the lookup tree to see which include is using up your lookups.
- Copy the report to share it with whoever manages your DNS.
What an SPF record does
Sender Policy Framework (SPF, RFC 7208) is a TXT record on your domain that lists the servers allowed to send mail using that domain in the envelope sender. A receiving server reads the record, compares the connecting IP address with the list, and gets one of several results: pass, fail, softfail, neutral, none, permerror or temperror.
A record is a list of terms read left to right. Mechanisms such as ip4, ip6, a, mx and include describe allowed senders, and the first one that matches decides the result. The all mechanism at the end matches everything else, so its qualifier is your policy for unlisted servers: -all means fail, ~all softfail, ?all neutral and +all pass. Never publish +all, because it lets any server on the internet pass SPF as you.
The 10 DNS lookup limit
To protect receivers, SPF evaluation may trigger at most 10 DNS lookups. The terms that count are include, a, mx, ptr, exists and the redirect modifier. ip4, ip6, all and exp cost nothing. Lookups inside an included record count toward your total, which is why the checker follows every include and adds them up.
Worked example: v=spf1 include:_spf.google.com include:mailgun.org mx ~all uses 1 for the Google include plus the lookups inside it, 1 for Mailgun plus its nested ones, and 1 for mx. If Google's record has 3 nested includes and Mailgun's has 1, the total is 1 + 3 + 1 + 1 + 1 = 7. Add three more marketing tools and you pass 10, at which point receivers return permerror and SPF fails for every message, including legitimate ones.
Common mistakes
Two SPF records. A domain may publish only one TXT record starting with v=spf1. Merge them into a single record. Too many includes. Remove vendors you no longer use, replace an include with the vendor's ip4 ranges if they are stable, or move bulk senders to a subdomain with its own record. Using ptr. It is deprecated and slow. Terms after all. Anything after all is never read. Forgetting DMARC. SPF alone does not tell receivers what to do with failures; pair it with DKIM and a DMARC policy.
SPF checks the envelope sender (Return-Path), not the From header people see. DMARC ties the two together by requiring the SPF-authenticated domain to align with the From domain.
FAQ
Should I use ~all or -all?
Both are fine once every legitimate sender is listed. Many teams start with ~all while they audit senders, then move to -all. With DMARC at p=reject, receivers act on the DMARC result, so the difference matters less.
Does the checker count the lookups inside a and mx?
It counts each a and mx term as one lookup, which is what the 10-lookup limit measures. An mx term also resolves the address of each mail server; RFC 7208 puts a separate cap of 10 on those address queries, so they do not add to the 10.
What does permerror mean?
A permanent error: the record is broken, for example more than 10 lookups, two SPF records, or an include that points at a domain with no SPF. Receivers treat it as a failure for DMARC purposes.
What are void lookups?
Lookups that return no answer. RFC 7208 suggests receivers allow at most 2. An include pointing at a domain with no record is the usual cause, and the checker flags it as an error.
Related tools
DMARC record checker
Fetches the _dmarc TXT record for a domain, explains each tag and rates how well the policy stops spoofed mail.
DKIM record checker
Enter a domain and a DKIM selector to fetch the public key, check its type and length, and flag common problems.
SPF record generator
Tick the services that send mail for your domain, add your own servers and IP ranges, and get a ready-to-publish SPF TXT record.
BIMI record checker
Fetch a domain's BIMI record, see its logo and certificate URLs, and check that DMARC is at the enforcement level BIMI depends on.
Email provider lookup
Enter a domain to see its mail servers and the email provider behind them. Uses public DNS from your browser.