SPF Checker with Lookup Tree and Lookup Count
SPF is the DNS record that tells receiving mail servers which servers may send mail for your domain. This checker reads the record, follows every include and redirect, counts the DNS lookups against the limit of 10 that receivers enforce, and tells you in plain words what to change. It also shows the full lookup tree with the cost of each record, so you can see which include is eating your budget.
The domain you type is sent to our server, which reads its public DNS records through 1.1.1.1 and 8.8.8.8 and returns the result; nothing is stored, and each visitor can run 20 checks a minute.
How it works
- We read the TXT records at your domain and keep the ones that start with v=spf1, in any letter case. Strings split across several 255 character pieces are joined before reading, as the standard requires.
- Zero records is a fail, and so is more than one: receivers treat several SPF records as a permanent error and SPF fails for every message. When that happens we list the records and propose one merged record that keeps each term once.
- With one record, we read each term and its qualifier (plus, minus, tilde or question mark). The terms include, a, mx, ptr and exists cost one DNS lookup each, and so does a redirect that applies. Every lookup inside an included or redirected record counts too, all the way down. ip4, ip6 and all cost nothing.
- We keep walking past the limit so you see the true total, and stop only at a safety cap of 40 lookups, in which case the page says "or more". The total fails above 10 and warns at 8 or 9.
- We also count void lookups, which are lookups that return nothing. More than two draws a warning, because the standard says receivers should stop after that.
- A loop, where record A includes record B and B includes A, is detected and reported instead of followed. Nesting is cut off at 10 levels.
- A lookup that fails with a server error is reported as "could not read". It is never reported as "no record", because that would tell you to publish something you may already have.
Limits
- The check reads DNS from two public resolvers at the moment you run it. A change you made seconds ago can take up to the record's TTL to show.
- We do not evaluate the policy for a particular sending address. We check the record itself: its count, its terms and its closing term.
- Macros (terms containing %) are listed but not expanded, so an exists term that uses one is counted but not probed.
- The merged record we propose for a double publication is a starting point. Check each term still belongs there before you publish it.
- Providers change their sending addresses. A flattened record can go stale without any warning from us.
Related tools
DMARC checkerRead a domain's DMARC record, understand every tag, and get the next safe step toward p=reject.DKIM checkerFind a domain's DKIM key, read its length and status, and get the exact fix when something is wrong.MX lookupList a domain's mail servers in the order senders try them, resolve each one, and name the provider.SPF record generatorDomain email checkerEmail blacklist checkerSee whether your domain or sending IP appears on spam blocklists, with a severity and a removal link for each.