Adding a TXT Record
A TXT record is a resource record commonly used for verification purposes and email validation. Email validation records usually come in two forms — DKIM and SPF — which are set up as TXT records in order to validate and authenticate email. If you are instructed to set up a DKIM or SPF record, you would select TXT as the record type.
TXT records usually contain a lot of text and, unlike other DNS records, the record can contain spaces and various special characters.
Your provider will supply your records and the formatting is fairly straightforward — a long string of text goes in the Answer section.
Example TXT Record
A Google verification TXT record:
| Type | Host | Answer | TTL |
|---|---|---|---|
| TXT | example.com | google-site-verification=abc123xyz | 300 |
Note: To set up DNS records through your registrar, you need to be using their nameservers so they can manage and host your DNS.
Steps to Add a TXT Record
- Log in to your domain registrar account.
- Navigate to your domains list.
- Click on the domain name you wish to create a TXT record for.
- Click Manage DNS Records.
- Here you will add the desired TXT record, provided by your host or service:
- Select TXT in the Type drop-down menu.
- If provided a subdomain or host, enter it in the Host field.
- Enter or copy+paste the value (string) into the Answer field.
- Leave TTL as 300 (default).
- Click the Add Record button.
Once the records are created, the domain should be working within 24 hours.