The short answer
To verify domain name ownership, use the method the service offers you. A DNS TXT record is the most common one: you add the exact value the service gives you at the company that runs your DNS, wait until the record is visible, then press the service's verify button. Whether you may delete the record afterwards depends on the service, because some keep checking for it.
Domain verification proves that you control the domain's DNS, its website or a mailbox at it. It is not a legal record of ownership: the registration record shows who holds the name, and our guide to RDAP and WHOIS lookups explains how to read it.
The five ways a service asks for proof
Most services offer one or more of these methods.
| Method | Where you add it | What it proves | Keep it afterwards? |
|---|---|---|---|
| TXT record | At your DNS host | Control of the DNS name the service checks | Depends on the service |
| CNAME record | At your DNS host | Control of that DNS name | While you use the service; remove it when you leave |
| File on the website | The website, at the path the service names | Control of the website | Yes, if the service keeps checking |
| Meta tag | The head of the home page | Control of the website | Yes, if the service keeps checking |
| Email to an address at the domain | A mailbox at the domain | Control of that mailbox | Nothing to keep |
Which to choose. Use a DNS record when the service needs the whole domain or you have no website you can edit. Use a file or a meta tag when you can edit the website but not the DNS. Use email only when the service offers it and the mailbox exists.
Adding a TXT record, step by step
Copy the value exactly. Take the whole value from the service, with nothing added or cut. Google Workspace, for example, gives a value that begins
google-site-verification=; you add it at your DNS host and then confirm in its Admin console. For the bare domain, Google says to leave the host field blank or enter@; for a subdomain, enter only the subdomain part, such assupport(Google Workspace Admin Help).Find who runs your DNS. The record must be added at the company named in the domain's nameservers. That is not always the registrar, and a record added anywhere else has no effect. Our guide to finding your domain registrar, DNS host and web host shows how to tell.
Watch the host field. Many DNS dashboards add your domain to whatever you type there, so typing
example.comcan create a record atexample.com.example.com. If the service asks for a record at_example-challenge.example.com, enter only_example-challenge.Add a new record; leave SPF alone. A domain can have several TXT records at one name, but some dashboards keep one TXT entry per name and overwrite it when you save a new value. If your SPF record (it begins
v=spf1) sits at the same name, add a separate TXT record rather than editing that one, and never create a second SPF record. Our guide to email DNS records explains what SPF does.Do not double the quotation marks. Some dashboards wrap the value in quotes for you; adding your own creates a second set.
Check, then press verify. Run the lookup described below first. If the old answer still shows, wait rather than pressing verify again and again.
CNAME verification
Some services ask for a CNAME record instead: a name at your domain that points to a name the service controls. Google Search Console, for instance, verifies a whole domain with a DNS record, a TXT record or a CNAME depending on your setup (Search Console Help). If a service shows example-verification.example.com pointing to verify.example-service.test, put only example-verification in the host field and paste the target exactly as given.
A name that has a CNAME cannot hold any other record. The bare domain cannot carry a CNAME, so this clash shows up on subdomains. When you stop using the service, remove its CNAME: the IETF draft on DNS-based validation warns that a forgotten one can be abused (draft-ietf-dnsop-domain-verification-techniques).
A file on your website or a meta tag
With the file method you download a file from the service and place it on your website at the path it names, without renaming or editing it. Search Console says the file must be public, not behind a sign-in, and that a redirect to another domain is not followed. Its meta tag method puts a line in the head section of the home page as a signed-out visitor sees it, within the first 2 MB of the page (Search Console Help). Both prove control of the website, not of the DNS. Certificate services use the same idea through software: Let's Encrypt's HTTP check reads a file under /.well-known/acme-challenge/ on port 80 (Let's Encrypt), and the certificate software on the web server normally places it for you.
Email to an address at the domain
A service may offer to confirm by sending an email to an address at your domain. The address has to exist, and someone has to read it. For public website certificates, the CA/Browser Forum's Baseline Requirements allow an email carrying a random value to admin@, administrator@, webmaster@, hostmaster@ or postmaster@ the domain; the same rules say this method should not be used for those certificates from 15 March 2026, and that a certificate authority must not rely on it from 15 March 2028 (CA/Browser Forum Baseline Requirements). Other services set their own rules, so follow the instructions the service gives.
Check that it took effect
For a TXT record on macOS or Linux, run dig TXT example.com +short; on Windows, run nslookup -type=TXT example.com. Replace example.com with the exact name the service checks. A public DNS lookup website does the same job. Both tools show each TXT value inside quotation marks, which is normal: what matters is that the text between them matches the service's value character for character.
If the lookup returns nothing, the record is not being served at that name: the host field is wrong, the record sits at the wrong provider, or it is not visible yet. If it returns a different or shortened value, something changed while pasting. For a file, open its full address in a private browser window: you should see the file, not a sign-in page or another site. For a meta tag, view the home page source and search for the tag. Then press the service's verify button.
How long it takes
Each service sets its own expectation. Google Workspace says a new TXT record can take up to 72 hours to be recognised (Google Workspace Admin Help). Search Console says a manually added record can take up to two or three days before your provider starts serving it (Search Console Help). Let's Encrypt suggests waiting, often as much as an hour, when you cannot check whether a record has spread (Let's Encrypt). These are those services' own figures, not a promise for every provider.
A lookup can show an old answer for a while because a computer or network has kept the previous response. If the record still does not appear after the window the service names, look for one of the mistakes below.
What goes wrong, and the fix
- Wrong host name. The lookup for the expected name shows nothing. Look for a doubled domain; use
@or a blank field for the bare domain. - A second TXT record replaced the first. The new value appears but an old one, often SPF, has gone. Restore the old value and add the new one as a separate record.
- Wrong DNS provider. Nothing changes however long you wait. Add the record at the company the nameservers name.
- A CNAME already at that name. The dashboard refuses the record. Use the exact name the service gives; remove the CNAME only if nothing depends on it.
- Extra quotes, spaces or a cut-off value. Delete the record and paste the value again.
- The file or tag is hidden. Remove any sign-in or redirect to another domain, and put the tag in the head of the page.
Can you remove the record afterwards?
It depends on the service, and two services from the same company give different answers. Google Workspace says the TXT record must stay until Google has verified ownership, and can then be safely removed (Google Workspace Admin Help). Search Console keeps checking: it tells you not to remove the DNS record even after success, and if your token disappears you are notified and lose access after a grace period (Search Console Help).
The IETF's DNS operations working group has a draft on this, not yet a standard. It says services must state how long a token stays valid, that it should be safe to remove the record once a one-time validation is complete, and that services which keep checking must say how often (draft-ietf-dnsop-domain-verification-techniques). So read the service's own help before deleting anything, remove records for services you no longer use, and keep a short note of what each verification record is for.
A worked example
Example Bakery (a fictional business) needs to verify example.com for a new email service. The service gives a TXT value, example-verification=abc123, to add at the DNS host. On the first attempt someone types example.com in the host field, and the record lands at example.com.example.com: a lookup for example.com shows the SPF record but not the new value. The bakery deletes the record, adds it again with @, sees the value in the lookup and presses verify. The service confirms the domain the next morning, and the bakery notes the record, what it is for and the date.
A checklist
- Note the method, the exact name and the exact value the service asks for.
- Find the company named in the domain's nameservers and sign in there.
- Use
@or a blank host for the bare domain, the label only for a subdomain. - Add a new TXT record; do not edit or duplicate SPF.
- Save without doubled quotes or extra spaces.
- Check with a lookup, a private window or the page source.
- Wait for the service's stated window before changing anything else.
- Read the service's help before removing the record, and note what it is for.
Frequently asked questions
What does "this website is pending domain owner verification" mean?
The wording comes from the service that shows it, so its meaning depends on that service. Sign in to that service or read its own help to see which method it expects. If nobody in your business asked for that service, find out who did before you add any record for it.
Does verifying a domain change my website or email?
A verification TXT record on its own does not. Editing or replacing the SPF record, or adding a CNAME at a name already in use, can.
Can I verify a domain I do not control?
No. You need access to its DNS, its website or a mailbox at it. If you are not sure who holds the domain, the registration record will tell you who to ask.
Do I need to verify again if I change DNS provider?
Copy every TXT and CNAME record, verification records included, to the new provider before you switch the nameservers. A service that keeps checking, such as Search Console, will otherwise stop finding its token.
Where GridOnBoard fits
Connecting a domain your business already owns, with the records it needs for email and your website set up for you, is arriving this week.
Check current product availability.