TXT Records: What They Are and When You Need One
A TXT record is a small piece of text stored in your domain’s DNS. It looks plain, but it does important jobs. This guide explains what TXT records are for and how to add one safely.
What a TXT record is
TXT stands for “text”. A TXT record holds a short note about your domain that other computers can read. It does not send visitors anywhere. It carries information.
What people use TXT records for
- SPF: lists the servers allowed to send email for your domain.
- DKIM: holds the public key used to check the signature on your email.
- DMARC: tells mail providers what to do with mail that fails checks.
- Domain verification: many online services ask you to add a TXT record to prove you own the domain.
How to add a TXT record
- Get the exact text from the service that asked for it. Copy it, do not retype it.
- Open the DNS settings where your domain’s DNS is managed.
- Click to add a new record and choose type TXT.
- Enter the name. It might be your domain, or a special name such as _dmarc. Follow the instructions you were given.
- Paste the text into the value field and save.
Common mistakes
- Two SPF records. A domain should have one SPF record. Put all sources in it.
- Extra spaces or quotes pasted into the value.
- Wrong name, for example adding the full domain where only the prefix is needed.
- Deleting a record you do not understand. It might be proving your ownership to a service.
Check it
Look up the record with our DNS checker, and choose the TXT type. If you are building email records, our SPF and DMARC generator creates the text for you.
How long it takes
New TXT records usually show up within minutes to hours. Some services need you to wait before they can verify.
Three common jobs for a TXT record
- SPF. A TXT record that lists which servers may send email for your domain.
- DKIM. A TXT record that holds a public key, so receivers can check that your messages were not changed on the way.
- Domain proof. A service gives you a short code, and you add it as a TXT record to show that you own the domain.
How to add one without mistakes
- Open the DNS zone for your domain, for example in the Zone Editor in cPanel.
- Choose to add a TXT record.
- Type the name the service gave you. Sometimes it is the main domain, sometimes a name like _dmarc.
- Paste the value exactly, without extra spaces or line breaks.
- Save, wait a little, and use the service’s own check button to confirm.
Good habits
Keep a note of every TXT record you add and why. Do not delete a TXT record unless you know what it does, because removing an SPF or DKIM record can send your email to spam. If you are unsure, ask our support team before you change it.
Quick summary
A TXT record is a short note in your DNS. It is used for email checks such as SPF and DKIM, and to prove that a domain belongs to you. Add them carefully, keep a list, and never remove one you do not understand. A small mistake can affect your email, but a correct record is quick to add and easy to test.
FAQ
Can I have many TXT records?
Yes. A domain can have several, for different jobs. SPF is the exception, where you should keep only one.
Are TXT records public?
Yes. Anyone can look them up, so never put passwords in them.
Why does a service need to verify my domain?
It wants proof that you control the domain before it lets you use it.