01What is an SPF record?
A TXT record starting with v=spf1 that lists which hosts may send email claiming to be from the domain. Receiving servers evaluate it against the connecting IP and get a pass, fail, softfail or neutral answer.
Enter a domain and we read its SPF record live: whether exactly one exists, what each mechanism says, and how much of the 10-lookup budget it spends.
A TXT record starting with v=spf1 that lists which hosts may send email claiming to be from the domain. Receiving servers evaluate it against the connecting IP and get a pass, fail, softfail or neutral answer.
In a TXT record at the domain itself. RFC 7208 section 3.1 says SPF records MUST be published as DNS TXT records; the separate SPF record type from the older specification was dropped.
No. RFC 7208 section 3.2: a domain MUST NOT have multiple records that match the check — and when it does, the result is permerror, which means receivers ignore SPF for the domain entirely. Merging the two records into one is the fix.
RFC 7208 section 4.6.4 caps the DNS-querying terms — include, a, mx, ptr, exists and the redirect modifier — at 10 for the whole evaluation. Past the cap the result is permerror, exactly as if the record were broken. The count is rarely obvious from reading the record, because one include can pull in a vendor record that spends several more, so the budget is usually exceeded by nesting rather than by length.
Qualifiers on each mechanism: + is pass (and is the default when no symbol is written), - is fail, ~ is softfail, and ? is neutral. The final -all or ~all decides what happens to senders nothing else matched.
Flattening means replacing include terms with the IP ranges they resolve to today, and it does remove the lookups. The cost is that those ranges were someone else’s to change: the moment a provider adds a sending host, your record no longer covers it and legitimate mail starts failing SPF without anything in your own DNS having changed. So it is a maintenance commitment rather than a fix — it works only if someone re-flattens whenever a provider’s ranges move, and nothing warns you when they do. That is why this page reports the count and names which terms spend it, instead of recommending flattening.
dig TXT example.com +short returns every TXT record on the name; the SPF record is the one that begins v=spf1. What the command will not do is follow the include chain or count the lookups against the limit, which is the part this page is for.
SPF is one of the three email-authentication legs, so the natural next checks are the domain’s DMARC policy and its DKIM keys. A signature rides on every message this record authorises, and the email signature generator builds one that survives the clients it lands in.