What Are TXT Records?

TXT records are a type of DNS record that allows you to add any generic text to your domain name.

When do I use a TXT record?

TXT records are relatively flexible and can be used in several ways. For example, they are often used to show providers (google, office365, web hosts, etc.) that you are the owner of a domain name.

Can I have an example of a TXT record?

Here are a couple examples:

  • Use @ to represent the bare domain (“example.com”):

@ 10800 IN TXT "whatever the text is you need to add"
  • Use the name of a subdomain, such as something (“something.example.com”):

something 10800 IN TXT "insert information here"

You will replace “something” in the above example with your actual subdomain. The most common is www.

A TXT record is limited to 255 characters per string. In order to insert a TXT record with more than 255 characters you will need to break your record into strings that are 255 characters or less each, then surround each of those sections in quotes. Your TXT record will look something like this:

@10800 IN TXT “first set of 255 characters”“second set of 255 characters""third set of 255 characters"...