How to Add DNS TXT to Verify All Subdomains in Google Webmaster Tools

By Updated   BloggingGoogleTutorials

DNS TXT record is the best way to verify all subdomains / subdirectories on your domain name in Google webmasters tools. We have been verifying our GWT account by uploading an HTML file on the server in the root folder. We avoided the META tag in the HEAD, as it become publicly visible. But the DNS verification is a better way.

Many webmasters host multiple subdomains for varying purposes like forums, microsites, blogs etc. Google provides many ways to verify sites – but due to varying modes in which you might be hosting the sites, many times it is difficult to add the Google verification code in meta tags in the HEAD area, or add Google analytics code in HEAD area or upload a html file in the root server. Many times you use CNAME for blogs / job boards to give the appearance that you host the site on your own subdomain. How to verify those?

DNS TXT Verification

Here is the best part – If you verify your domain, ALL subdomains and subdirectories are automatically verified and it is the the best way to claim ownership of your entire site completely, without the need to keep adding tags and uploading files to each sub-domain  Obviously you need to have control of your DNS settings, which most domain hosting providers provide access to.

Go to site verification options in Google webmasters tools. Choose the domain you want to verify.

Verify Domain Name

After choosing Domain Name Provider, we could not find our web hosting provider Knownhost there, so we choose “Other”. Then Google gives a long txt code which needs to be added to the DNS TXT settings of the domain name. Copy it correctly,  and paste in Notepad to keep ready for use in the DNS settings.

Verify DNS Txt

How to add DNS TXT record? Login to your server WHM and go to DNS Settings > Edit DNS Settings > Choose Domain. Now we add a new TXT field to the domain name. Note your domain name should be followed by a dot. We use 300 sec as it will propogate DNS faster and make Google grab the verification faster. Enter the value provided by Google within double quotes (” “)  in the form field marked “Text information”.

Add DNS TXT in WHM

After you save the new DNS settings, the DNS propogation will occur quickly (you can check using WhatsMyDNS) and you can click verify. Now the domain will be verified and you can confirm.

Domain Verified

If you had previously added multiple subdomains and subdirectories to be individually tracked in GWT, they will ALL be automatically verified too. Try it for yourself.

3 comments on “How to Add DNS TXT to Verify All Subdomains in Google Webmaster Tools

  1. joyislam says:

    Nice data to see! (that people’s priorities are wacked.. SEO sure but at the top?) Not the best use of the infographic medium though :p It’s a nice but unnecessarily decorated list that is now inaccessible and has no hyperlinks

  2. golzarrahman says:

    How do I get hosting in your server.

  3. Everything Android says:

    I personally use the HTML file upload option, but the new addition is equally good for verification.

Leave a Reply

Your email address will not be published. Required fields are marked *



 
css.php