What is a TXT Record?

TXT records (which stands for "text records) are one of the more generic types of DNS records. Commonly they are used for adding additional security or verification records, which can help confirm domain ownership or combat spam in email accounts.

TXT records aren't used for connecting a domain name to a website or email like A, CNAME, or MX records, but they are often added at the same time to verify the domain with the service platform and enable you to get the website or email working.

It's common for a TXT record to include a code. These are unique codes for each verification, and enable the service you're setting up (like G Suite or Zoho) to confirm that you own the domain and have access to the account where you're setting up these records.

Typically you get the verification code from your account for the website or email service you're setting up (like G Suite or Zoho). If you are not sure where to find the code, we can try to help, or the support team for the service you're trying to set up can assist.

The codes can vary in syntax, but usually include strings of letters and numbers. Sometimes there are dashes and underscores. The exact format can be confusing sometimes, so if you have questions, feel free to ask for help.

We have information on adding a TXT record, and setting up G Suite, Zoho Mail, FastMail, or Microsoft Office 365, which are popular.

Sometimes you also use a TXT record to add an SPF record (we know, that's a bit confusing). SPF records are used for security. We have information here on adding an SPF record.

For more information on DNS records and what they do, check out our guide: What is DNS? Here's what you need to know.