Skip to main content


Home DNS TXT record

DNS TXT record

(also DNS text record)

What is a DNS TXT record?

A DNS TXT record is a type of DNS record that contains and stores data about your domain in a text format. A DNS TXT record also contains valuable information that helps external network services and servers deal with outgoing email traffic that originates from your domain. Unlike other DNS records, a DNS TXT record is a multi-purpose record. It’s considered a multi-purpose record because it contains data for machines and instructions that can be read by humans. Most organizations and individuals use DNS TXT records to store general information about their domains and contact details.

See also: spamming, anti-spam, DNS record, domain, public key encryption

DNS TXT record example

Example of a DNS TXT record:

  • example.com: @
  • record type: TXT
  • value: This is an awesome domain! Definitely not spammy.
  • TTL: 32600

What is the purpose of the TXT (text) DNS resource record?

The TXT DNS resource record is used to store arbitrary text data associated with a domain, often for purposes like domain verification, policy definitions, or providing metadata. It is commonly utilized for SPF records, DKIM signatures, and other verification processes to enhance security and manage domain settings.

DNS TXT record use cases

  • Email security. You can use DNS TXT records to avoid being spammed, phished, or otherwise attacked through email. In this case, some of the measures and services that will protect your email include DKIM signing, SPF records, DMARC authentication, and BIMI.

  • Confirm domain ownership. Some organizations, like Google, Gmail, and many other email providers, use DNS TXT records to confirm domain ownership. And if an email provider or other similar organization can’t confirm the ownership of a domain, it might mark it as risky and block it.

How to add a TXT record to your domain

To add a TXT record to your domain, access your domain's DNS management console through your domain registrar or hosting provider. Create a new TXT record, enter the required text value, and save the changes to update your DNS settings.