What Is a TXT Record and What Is It Used For?
A practical guide to TXT records, why so many services use them, and how to read a TXT lookup without mixing one purpose up with another.
TXT records are where a lot of DNS projects go to hide their notes.
That sounds messy, but it is also why TXT records show up everywhere: email authentication, domain verification, ownership checks, and more.
What a TXT record actually is
A TXT record is a DNS record that stores text data.
That sounds broad because it is broad.
Unlike an A record or MX record, a TXT record is not tied to one narrow job. It is a flexible container that many systems use for policies, tokens, or verification strings.
What TXT records are commonly used for
The most common examples are:
- SPF policies
- domain-verification tokens
- DMARC policies
- service-specific verification strings
That is why a domain can have several TXT records that all mean different things.
Why TXT lookups confuse people
The confusing part is not the lookup.
The confusing part is interpretation.
People often see “there is a TXT record” and assume the problem must be solved. In reality, the real question is whether the right TXT record exists at the right name with the right value.
How to check a TXT record properly
Use How to Check TXT Records for a Domain when you need the practical workflow.
Then verify:
- the exact hostname
- the exact value
- whether DNS changes have propagated
- whether the record belongs to SPF, DMARC, verification, or something else
International domain note
If the domain is internationalized, DNS tools may show the record under the Punycode version of the name.
That is normal. The important part is matching the correct DNS label.
Useful next reads
- How to Check TXT Records for a Domain
- What Is SPF and How Does It Work?
- What Is DMARC and How Does It Work?
The short version
TXT records are flexible DNS text records used for several different jobs.
That flexibility is useful, but it also means you need to know which TXT record you are actually trying to verify.
Continue reading
Stay in the same investigation track with these closely related guides.
Tools mentioned in this article
Run the same diagnostics to follow along with the guide.