Account

Glossary / TXT record

TXT record (DNS text record)

A TXT record holds arbitrary text in a domain's DNS zone for other services to read. It rarely contains words meant for people: most often it is a technical string, such as proof that you own the domain or the SPF, DKIM and DMARC rules for email.

Check your site

>

TXT was first meant for plain notes. Today Google, Microsoft and other services use it for domain verification: they ask you to add a TXT record with a unique string to confirm that the domain is yours.

The most important use is protecting email. An SPF record lists the servers allowed to send mail as you, DMARC says what to do with forged messages, and DKIM publishes the public key that receivers use to check signatures. All three are usually TXT records (some providers publish DKIM as a CNAME), and they directly affect whether your mail stays out of the spam folder.

One host can carry several TXT records at once, as long as only one of them is an SPF record.

Example

example.com.  3600  IN  TXT  "v=spf1 include:_spf.google.com ~all"

Common mistakes

Related terms