Knowledgebase

How to verify domain ownership for Google Search Console (DNS TXT record)

This guide shows you how to verify domain ownership in Google Search Console using a DNS TXT record. A Domain property verified by DNS covers every version of your site at once: http and https, with and without www, and all subdomains. It is the most complete way to see how Google indexes your site and the method Google recommends when you can edit your DNS.

Before you start

  • A Google account you will keep (ideally a company account, not an employee's personal one).
  • Access to the place where your domain's DNS is managed. If your domain uses EgWeb nameservers, that is cPanel Zone Editor. If it uses Cloudflare, add the record in Cloudflare instead. Not sure? Check the NS records with How to check DNS records online.

Step 1: Add a Domain property in Search Console

  1. Go to search.google.com/search-console and sign in.
  2. Open the property menu and click Add property.
  3. Choose Domain (the left option) and type your domain only, for example example.com (no https://, no www).
  4. Click Continue. Google shows a TXT record that looks like google-site-verification=AbC123.... Click Copy. Leave this window open.

Step 2: Add the TXT record in cPanel

  1. Log in to cPanel (see How to log in to cPanel) and open Zone Editor.
  2. Next to your domain, click Manage.
  3. Click the arrow next to Add Record and choose to add a TXT record.
  4. Fill in:
    • Name: your domain followed by a dot, e.g. example.com. (this is the root, sometimes written as @).
    • TTL: leave the default.
    • Record: paste the full value, e.g. google-site-verification=AbC123..., without extra spaces or quotes.
  5. Click Save Record.

If your DNS is on Cloudflare: DNS → Records → Add record, Type TXT, Name @, Content = the Google value, then save.

Step 3: Verify

  1. Wait a few minutes, then check the record is visible: nslookup -type=txt example.com 8.8.8.8, or Google's Admin Toolbox Dig.
  2. Go back to Search Console and click Verify.
  3. If it says the record was not found, wait and try again later. New records are usually visible quickly, but it can take longer.
Keep the record forever. Google re-checks ownership from time to time. If you delete the TXT record, you lose access to the property. You can have several google-site-verification records at the same time (for example one for Search Console and one for Google Workspace) and they do not affect SPF or email.

After verification

  • Submit your sitemap under Sitemaps (WordPress SEO plugins usually create one at /sitemap_index.xml or /sitemap.xml).
  • Add colleagues or your agency under Settings → Users and permissions instead of sharing your password.
  • Need help with SEO itself? See our SEO service.

Common problems

  • "Verification failed": the record was added in cPanel but the domain's nameservers point elsewhere (Cloudflare or another provider). Add it where the NS records point.
  • Record added on the wrong name: e.g. example.com.example.com. The name must be the root domain.
  • Value cut or with quotes: paste the exact value Google showed.
  • You prefer not to touch DNS: choose URL prefix instead and verify with an HTML file or meta tag. It only covers that one exact address, though.

Frequently asked questions

Will the TXT record affect my website or email?

No. It is only a text note that proves ownership. It does not change where your site or email point.

Domain property or URL prefix?

Domain property is better because it covers all versions and subdomains. Use URL prefix only if you cannot edit DNS.

Can EgWeb add the record for me?

Yes. Open a support ticket and paste the exact TXT value from Search Console.

Need help? Open a support ticket or message us on WhatsApp +20 127 113 3655.

  • Google Search Console, verify domain, domain property, TXT record, google-site-verification, DNS verification, توثيق الدومين في Google Search Console

Was this answer helpful?

0 Users Found This Useful