What is a TXT Record?

Text, or TXT 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 are not used for connecting a domain name to a website or email like A, CNAME, or MX records. They are often added at the same time to verify the domain with the service or hosting platform and enable you to get a website or email working.

It is common for a TXT record to include a code or string. These are unique codes for each verification, and enable the service you're setting up, like Google Workspace or Zoho Mail, 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 hosting account for the website or email service you're setting up. If you are not sure where to find the code, we can try to help, or your hosting provider's support team can assist.

The codes can vary in syntax, but usually include strings of letters and numbers. Sometimes there are dashes and underscores.

Sometimes a TXT record is used to add an SPF record, which are usually used for email security.