Skip to main content
Sealgap

What is a DNS TXT record?

A DNS TXT record is a line of text stored in a domain's DNS settings. It does not point visitors anywhere. It is there to be read by other services, which use it to confirm facts about the domain: who is allowed to send mail from it, and who controls it.

What TXT records are used for

  • Proving control of a domain. A service gives you a unique value and asks you to publish it as a TXT record. Only someone with access to the domain's DNS can do that, so finding the value proves control. This is one of the methods of ownership verification.
  • Email authentication. SPF and DMARC are TXT records that tell receiving mail servers which servers may send mail for the domain, and what to do with mail that fails the test.
  • Other services' own checks, such as search engines and certificate authorities confirming that a domain is yours.

A domain can have many TXT records at the same time. Adding one for a new service does not replace the others.

How to add one

Open the DNS settings wherever the domain's DNS is hosted, add a new record of type TXT, and fill in three fields:

  • Name or host: where the record lives. Many services ask for a specific name, such as _verify. Some DNS panels want only that part, others want the full name.
  • Value or content: the text the service gave you, exactly as given.
  • TTL: how long other servers may remember the answer. The default is fine.

Four mistakes that make a check fail

  1. The record is added in the wrong place. A domain bought at one company often has its DNS hosted at another, such as Cloudflare. A record added at the registrar does nothing if the name servers point elsewhere. Add it where the domain's name servers are.
  2. The domain name is doubled. Typing _verify.example.com into a panel that adds the domain by itself creates _verify.example.com.example.com. If the panel shows the domain next to the field, type only the first part.
  3. Quotes or spaces are copied along. Some panels add quotation marks themselves; adding your own can become part of the value. Paste the value alone.
  4. The check runs before the record is visible. A new record usually appears within minutes, but a cached "no such record" from an earlier attempt can linger for the length of its TTL. A service that asks the domain's own name servers directly sees the new record at once.

Leave a verification record in place for as long as the service uses it. Many services look for it again at intervals, and removing it during a cleanup is a common reason a working setup suddenly stops.

Also known as

TXT record DNS verification record

Free check

See what one of your apps answers.

Certificate, browser protections and keys in public code. No account needed.

See what one of your own apps answers.

The free check looks at an app from the outside: whether it answers, its certificate, its browser protections and keys in its public code.