Technical SEO
Google Search Console Verification: DNS First, and Why It Breaks Later
Google Search Console verification is how you prove to Google that you own a website, so it shows you that site's search data. Do it once the right way and you'll rarely think about it again. Do it the quick way and it tends to break the next time someone redesigns the site or moves hosts.
The short version: verify a Domain property with a DNS TXT record. It covers your whole domain, and it lives in your DNS (the internet's address book for your domain), not in your website's code, so a redesign can't delete it.
If you'd rather have Search Console set up properly as part of a site review, the technical SEO audit questionnaire takes a few minutes, and audits start at $750 for sites under 100 pages.
Domain property vs URL-prefix property
Search Console has two kinds of property (the site, or slice of a site, you see data for). Google's help page on adding a property defines them:
| Item | Domain property | URL-prefix property |
|---|---|---|
| Example | example.com |
https://www.example.com/ |
| Covers | All subdomains (www, m, shop), http and https | Only URLs starting with that exact prefix |
| Verification | DNS record only | HTML file, HTML tag, Google Analytics, Tag Manager, or DNS |
| Survives a redesign | Yes | Depends on the method |
A URL-prefix property is strict: https://example.com/ doesn't include the www version. That's how owners end up with four properties, each showing a slice of their traffic.
Google Search Console verification with a DNS TXT record
A TXT record is a line of text in your domain's DNS settings. Google gives you a code, you paste it into DNS, and Google looks it up.
Step 1: Find out who runs your DNS
Your DNS might be at your registrar (where you bought the domain), your host, or Cloudflare. It's whoever holds your nameservers.
- Open a terminal (Command Prompt on Windows, Terminal on Mac).
- Type
nslookup -type=NS example.comwith your own domain and press Enter.
What you should see: nameserver names. cloudflare.com means Cloudflare, domaincontrol.com usually means GoDaddy. If you don't recognize them, search the names. That company's dashboard is where you'll add the record.
Step 2: Add a Domain property in Search Console
- Sign in to Search Console with the Google account you want as the owner.
- Open the property selector at the top left and click Add property.
- In the Domain box, type your bare domain, like
example.com(nohttps://, nowww). - Click Continue.
What you should see: a verification window showing a TXT record that starts with google-site-verification=.
Step 3: Try automatic verification
Google's verification help page says that if your DNS provider is in the list, you can pick it, click Start verification and sign in, and "verification should occur immediately."
If your provider is listed, do that, then skip to Step 6 to confirm. If it isn't, choose Any DNS provider and copy the full TXT value for the next step.
Step 4: Add the TXT record at your DNS provider
Google's instruction is to leave the host or name field blank, or enter @ (the root of your domain), and paste the code as the value.
- Sign in to your DNS provider and open the DNS records for your domain.
- Add a new record and set the type to TXT.
- Enter
@as the name (or leave it blank if the form asks for that). - Paste the full
google-site-verification=...value into the value field, and save.
Two providers, as of October 2026:
- Cloudflare: open the DNS Records page, select Add record, choose TXT, fill in the fields and select Save (Cloudflare's guide).
- GoDaddy: in your Domain Portfolio, select the domain, then DNS, then Add New Record, pick TXT from Type, fill in Name (
@), Value and TTL, and Save (GoDaddy's TXT help).
Don't delete other TXT records you find there. Email services use them too.
Step 5: Check the record is live
- In your terminal, type
nslookup -type=TXT example.comand press Enter.
What you should see: a line with google-site-verification= and your code. No terminal? Google's Admin Toolbox Dig tool does the same lookup in a browser. If it isn't there yet, wait. Google says it can take up to two or three days for a provider to serve the record, though it's often much faster.
Step 6: Click Verify in Search Console
Go back to the verification window and click Verify.
What you should see: a confirmation that ownership is verified. Data takes a few days to fill in for a new property. If you see "Could not find your domain" or "Your verification DNS TXT record was not found," the record isn't visible yet or sits on the wrong name (like www instead of the root). Re-check Step 5, wait a day and try again.
Backup methods for URL-prefix properties
These verify only URL-prefix properties. Google recommends adding more than one method in case one fails.
- HTML file: upload Google's file to your site root so it loads at an address like
https://example.com/google1234abcd.html. Don't rename or edit it, and note that Search Console doesn't follow redirects for it. - HTML tag: add the
<meta name="google-site-verification" ...>tag to the<head>of your homepage as a logged-out visitor sees it, within the first 2MB. On WordPress, most SEO plugins have a box for it. - Google Analytics: works if your homepage has the gtag.js or analytics.js snippet in the
<head>, you have edit rights on the Analytics account, and you use the same Google account in both tools. - Google Tag Manager: you need Publish or Admin permission on the container, and the
<noscript>part must sit right after the opening<body>tag.
Why Search Console ownership verification "breaks"
Google says Search Console "periodically checks if your verification token is still present and valid." If it's gone, your permissions expire after a grace period. What usually removes it:
- A redesign or new theme. The HTML tag lived in the old theme's header, or in an SEO plugin that got swapped out.
- A host move. The verification file sat in the old server's root folder and never got copied.
- A DNS change. Switching nameservers (to Cloudflare, say) without copying the old TXT records drops the verification too. Copy every TXT record first.
- Analytics or Tag Manager removed. If you verified through Analytics and someone swaps the tracking setup, verification goes with it.
DNS verification on a Domain property dodges the first two, which is why I lead with it. If you're planning a move, put "keep Search Console verified" on the checklist of any migration done with a tested redirect map. Changing domain names also requires verification on both domains for Google's change of address tool (here's what that tool covers).
Ownership verification failed: what the messages mean
The common messages from Google's list, in plain English:
- "Your verification file was not found in the required location" or "Meta tag not found/in the wrong location": the file or tag is missing, or the tag is in the body instead of the head.
- "Your verification DNS TXT record was not found" / "Could not find your domain": the TXT record isn't visible yet, or it's on
wwwinstead of the root. - "The download request was redirected too many times": the page bounces around before loading. Fix the redirect chain first.
- "Your server returned an invalid response": often password protection or a security plugin blocking Google.
- "Hacked verification file": Google suspects the site was compromised. Check the site before anything else.
Final thoughts on verifying your domain
Verify with DNS, keep the TXT record forever, and add a second owner you trust so one lost login doesn't lock everybody out. Then add your team (my guide to adding users in Search Console) and learn the reports in the Search Console guide.
If verification keeps failing, or you've just moved hosts and lost your data view, tell me about the site in the audit questionnaire. I reply with a plan and a fixed quote within one business day.
Search Console verification FAQ
Do I need to keep the TXT record after verifying?
Yes. Google re-checks verification, and if the record is gone, your access expires after a grace period. The record is harmless: it doesn't affect email, speed or anything visitors see.
How long does DNS TXT verification take?
Often minutes, but Google says a provider can take up to two or three days to start serving a new record. If Verify fails, look the record up yourself with nslookup or Google's Dig tool. If you can see it and Google can't, wait a day and try again.
Should I use a Domain property or a URL-prefix property?
Use a Domain property as your main one. It covers http and https, www and non-www, and every subdomain, and its DNS verification survives redesigns. A URL-prefix property is useful for a narrow slice, like one subfolder, or when you can't access DNS at all.
Can more than one person verify the same site?
Yes. Several people can be verified owners of one property, with the same or different methods. If you share a method, don't overwrite someone else's token, since that removes their verification. Most businesses need one or two verified owners and add everyone else as users.
Want a second pair of eyes on your site?
Tell me what's going on in the technical seo audit questionnaire. I reply with a plan and a fixed quote within one business day.