How to Add a TXT Record to Verify a Domain

Google Workspace, Search Console, Facebook, TikTok and other services ask you to prove that you own the domain. One way is to add a TXT record with the code the service gives you to the domain's DNS.

What to enter

FieldWhat to enter
TypeTXT
Name (host)@ — the domain itself, unless the service specifies another name (for example, _dmarc or google._domainkey)
Valuethe full code from the service, for example google-site-verification=…
TTLdefault

Copy the whole value, without spaces at the start or end. The panel adds quotes itself if they are needed.

Where to add the record

Add the record where the domain's DNS currently works. If the domain uses our name servers, add it in the hosting panel: ISPmanager, cPanel, Plesk, FastPanel, DNS for a VDS. If DNS is at your registrar or in Cloudflare, add it there. To find out where DNS works, see How to point a domain to hosting.

Do not delete other TXT records of the domain, such as SPF (v=spf1 …). A domain can have several TXT records; they do not conflict. The exception is SPF: there must be only one.

How to check

A new record usually becomes visible within a few minutes, sometimes up to a day. Check it with:

nslookup -type=txt your-domain.com 8.8.8.8

When the code appears in the output, click the verification button in the service ("Verify"). Search Console also has a method without DNS: verification with a file.

Questions and answers
Yes. Different services can keep their TXT records at the same time. Only SPF must not be duplicated: there must be a single v=spf1 record.
Wait: DNS updates take from a few minutes to a day. Make sure the record was added where the domain's DNS works and that the value was copied in full.
It depends on the service: Google asks you to keep it, otherwise verification may be lost. Keep the record.