An SPF record is a DNS TXT record at the domain name, starting v=spf1. It lists which hosts are authorised to send mail from that domain. Looking it up is a DNS query, not a test of whether a particular inbox exists.

This page shows how to make the query and how to read the string that comes back. What the record does and does not prove is covered in SPF, DKIM and DMARC for contact-list owners. For mail routing rather than sending authorisation, see how to look up an MX record.

How do you query the TXT records?

On Windows, Microsoft's nslookup command documents a -type= option to set the DNS record type. To ask for TXT records at a domain:

nslookup -type=TXT example.com

On macOS or Linux, the usual equivalent is dig TXT example.com or host -t TXT example.com. You can also query a public DNS-over-HTTPS resolver. Cloudflare documents a JSON interface at https://cloudflare-dns.com/dns-query in its 1.1.1.1 DNS-over-HTTPS documentation.

We queried example.com as a TXT record via Cloudflare's DNS-over-HTTPS resolver on 24 November 2026 (Europe/Dublin). The answers included:

v=spf1 -all

and a second TXT string that does not start v=spf1. RFC 7208 says SPF records "MUST be published as a DNS TXT (type 16) Resource Record" and that the record is the TXT string that starts with the version token. Other TXT records at the same name — verification tokens, site verification strings, and so on — are not SPF records. If more than one string starts v=spf1, RFC 7208 section 4.5 treats that as a permanent error.

example.com is reserved for use in documentation and examples. It is a useful worked case because the record is short. A corporate domain will often have a longer include: chain.

How do you read the v=spf1 string?

The tokens after v=spf1 are mechanisms and modifiers, evaluated from left to right. The ones you will see most often on a contact-list check are:

  • include:name — RFC 7208 section 5.2 says this "triggers a recursive evaluation of check_host()" for that name. You then look up the TXT record at name and read its SPF record too.
  • redirect=name — a modifier used when the domain wants evaluation to start again at another name, typically instead of ending with all.
  • ip4: and ip6: — address ranges that are authorised directly. They do not cause a further DNS lookup at evaluation time.
  • all — the default that always matches, usually written last, with a qualifier: -all (fail), ~all (softfail), ?all (neutral) or +all (pass). RFC 7208 section 5.1 says mechanisms after all must be ignored.

The example.com record v=spf1 -all has no authorised hosts and a terminal fail. That is consistent with a domain that does not send mail. It is still not a statement about inbound addresses; on the same day, example.com also published a null MX, which is a separate, routing-side signal (see what an MX record proves).

What is the 10-lookup limit?

RFC 7208 section 4.6.4 requires implementations to limit to 10 the terms that cause DNS queries during evaluation: include, a, mx, ptr, exists and redirect. If the limit is exceeded, the result is permerror.

So a record can look syntactically fine at the apex and still fail evaluation once you follow its include: and redirect= names. Counting only the includes and redirects you can see in the published strings is a floor: the a, mx, ptr and exists mechanisms also count toward the same limit. Our listed-company SPF snapshot reports how often that floor already reaches 10 in one dated sample.

When you follow an include:, look up the target name's TXT record, not a guessed hostname. Stop if you have already made 10 include/redirect lookups, and treat that as the RFC limit being hit rather than as a fact about a mailbox.

What should you record?

If you look up SPF as part of checking a contact list, keep:

  • The domain you queried, the date, and the resolver.
  • The v=spf1 string, verbatim, or a note that none was found, or that more than one was found.
  • The terminal all qualifier, if any, and whether an include/redirect walk reached the 10-lookup limit.

Do not treat the result as a delivery, inbox or identity verdict. It is evidence about how the domain authorises senders.

Where does Trigonomic fit?

Trigonomic's planned email step reports DNS and format evidence for a supplied address. It is not a delivery, inbox, ownership or identity guarantee, and it is not an SPF authentication of a message you have sent.

Trigonomic is in development. The public site is an introduction and interactive design preview with synthetic data. It has no account creation and no list upload, and it runs no live checks.

Explore the workflow preview

Frequently asked questions

Which DNS record type holds the SPF record?

TXT. RFC 7208 requires SPF records to be published as DNS TXT records. A TXT string only counts as an SPF record if it starts v=spf1.

What does v=spf1 -all mean?

It is an SPF record with no authorised sending mechanisms and a terminal Fail. Hosts sending mail that uses that domain as the SPF identity will not match an earlier mechanism, so evaluation ends on -all. That is a statement about sending, not about whether the domain accepts mail.

Why might an SPF lookup need more than one query?

include: and redirect= point at other names, each of which has its own TXT record. RFC 7208 also counts a, mx, ptr and exists toward a limit of 10 such terms. Past that limit, evaluation returns a permanent error.

Does a missing SPF record mean the address is invalid?

No. A domain can receive mail, or refuse it, with or without an SPF record. Absence of v=spf1 is a fact about sending policy, not about a recipient mailbox.