Domains

How to Verify Your Domain in Google Search Console via DNS TXT

Learn how to add and verify your domain in Google Search Console using a DNS TXT record, regardless of your domain registrar.

A modern server room featuring network equipment with blue illumination. Ideal for technology themes.

To verify your domain in Google Search Console using a DNS TXT record, add the verification code Google gives you to your domain's DNS zone and click Verify. The whole process takes under five minutes plus DNS propagation time.

If you've just launched a website or want to track your search performance, Google Search Console is the most important free tool Google offers for site owners. This guide covers exactly how to complete domain verification using a DNS TXT record — the recommended method for full-domain properties.

Domain Verification in Google Search Console: What It Is

When you add a site to Search Console, you choose between two property types:

  • Domain property: covers the entire domain plus all subdomains, protocols (http/https), and paths. Requires DNS access.
  • URL-prefix property: covers a specific URL only (e.g., https://www.yourdomain.com). Supports multiple verification methods.

If you want unified data across your whole site — including subdomains like blog.yourdomain.com — choose the domain property and verify via DNS TXT. It's the most comprehensive option.

What You Need Before You Start

  • A Google account (Gmail or Google Workspace).
  • Access to your domain registrar's control panel (GoDaddy, Namecheap, Cloudflare, cPanel, etc.).
  • Your domain already registered with an active DNS zone.

No FTP access needed. No server files to touch. Just DNS.

Step 1: Add Your Domain to Google Search Console

  1. Go to search.google.com/search-console and sign in.
  2. In the top-left corner, click the property selector and choose + Add property.
  3. Select the Domain type (not "URL prefix").
  4. Enter your domain without a protocol — for example, yourdomain.com.
  5. Click Continue.

Google will display a unique verification code, similar to:

google-site-verification=abc123XYZ456...

Copy the full string. You'll need it in the next step.

Step 2: Add the TXT Record in Your DNS Zone

The exact steps differ slightly by registrar, but the concept is identical everywhere:

In cPanel / WHM

  1. Log into cPanel → Zone Editor.
  2. Select your domain and click Manage.
  3. Scroll to the TXT section and click Add Record.
  4. Fill in the fields:
    • Name: @ or leave blank (represents the root domain).
    • TTL: 3600 (or the default value).
    • Type: TXT.
    • Value: paste Google's verification code.
  5. Save the record.

In Cloudflare

  1. Log into the Cloudflare dashboard → select your domain.
  2. Go to DNS → Records and click Add record.
  3. Type: TXT. Name: @. Content: paste the code. TTL: Auto.
  4. Make sure the proxy (orange cloud) is off (DNS only) — TXT records don't need proxying.
  5. Save.

In GoDaddy, Namecheap, or Other Registrars

The exact path varies (look for "DNS Management" or "Advanced DNS"), but you'll always add a TXT record at host @ with Google's verification string as the value.

If you're unsure how to edit your domain's DNS zone, the team at elenlace.com can walk you through it at no charge.

Step 3: Verify in Google Search Console

  1. Return to the Google Search Console window where you left the verification code.
  2. Click Verify.

Google will query your domain's DNS zone for the TXT record. If it finds it, verification completes immediately and you'll see a success screen.

If you see an error, DNS likely hasn't propagated yet. Wait 5 to 30 minutes and try again. In rare cases it can take up to 24 hours, though modern registrars usually resolve this within an hour.

How to Confirm the TXT Record Has Propagated

Use the dig command in any terminal:

dig TXT yourdomain.com +short

Or use an online tool like dnschecker.org. Search your domain, select record type TXT, and check that the record appears on most servers before retrying verification.

Tool Query Type Where to Use
dig Terminal / CLI Linux, macOS, WSL
nslookup Terminal / CLI Windows, Linux, macOS
dnschecker.org Web Any browser
mxtoolbox.com Web Any browser

Common Errors and How to Fix Them

"Ownership verification failed"

Most common causes: the TXT record hasn't propagated yet, you copied an incomplete code, or you placed the value in the Name field instead of the Value field. Double-check the record in your DNS panel and compare it character by character with what Google provided.

The TXT Record Shows But Google Won't Verify

Check for extra quotation marks around the value. Some panels add them automatically; Google accepts single quotes, but if your panel doubles them it can break verification. Delete the record, recreate it, and confirm the exact value with dig TXT.

I Lost Access to the TXT Record — How Do I Re-verify?

If the TXT record is deleted from DNS, Google may eventually revoke verification (not immediately). Keep the record in your DNS zone permanently once you're verified — there's no reason to remove it.

For more domain configuration guides, visit our domains resource hub.

Key Takeaways

  • DNS TXT verification covers the full domain, including all subdomains and both http/https protocols.
  • You only need access to your registrar's DNS panel — no server file changes required.
  • Keep the TXT record in your DNS zone permanently to avoid losing verification.
  • If propagation is slow, wait 5–30 minutes before retrying in Search Console.
  • Tools like dig or dnschecker.org let you confirm the record is live before you click Verify.

Ready to start tracking your site's search performance? If you have questions about DNS setup or domain configuration, reach out to the elenlace.com team — we'll have you set up in minutes.

FAQ

Can I verify in Search Console without DNS access?

Yes, but only with the URL-prefix property type, not the Domain type. For URL-prefix verification you can use an HTML file upload, an HTML meta tag, Google Analytics, or Google Tag Manager. However, that property only covers the exact URL you declare — no subdomain coverage.

How long does DNS propagation take for TXT records?

With most registrars, between 5 and 30 minutes. In exceptional cases it can take up to 48 hours, though modern providers rarely exceed 1 hour in practice.

Will the TXT record affect my website or email?

No. TXT records are informational and don't interfere with domain resolution or your MX (email) records. You can have multiple TXT records simultaneously — SPF, DKIM, Google verification, and others all coexist without conflict.

Do I need to verify www and non-www separately?

Only if you use the URL-prefix property type. With the Domain property (verified via DNS TXT), Google automatically consolidates www, non-www, http, and https under one property.

Further reading

Other providers and guides worth comparing:

← All