How to verify domain ownership for Google Search Console via DNS record (with DigitalOcean and Namecheap) ?


For websites I owned, I am using two services: namecheap (a domain name registrar) and digitalocean (a cloud platform). Here, I show how to quickly verify a domain ownership for google Search Console via DNS record:

Note: Herafter I assumed that you already have a domain name registered (if not you can go on namecheap for example, create an account and register a new domain name. It takes only 2 minutes)

Step 1: Google Search Console

Let's first add a new property in Google Search Console:

How to verify domain ownership for Google Search Console via DNS record (with DigitalOcean and Namecheap) ?
How to verify domain ownership for Google Search Console via DNS record (with DigitalOcean and Namecheap) ?

then enter your domain name:

How to verify domain ownership for Google Search Console via DNS record (with DigitalOcean and Namecheap) ?
How to verify domain ownership for Google Search Console via DNS record (with DigitalOcean and Namecheap) ?

next we will verify domain ownership via DNS record for that copy the code that google gives you:

google-site-verification-*******

How to verify domain ownership for Google Search Console via DNS record (with DigitalOcean and Namecheap) ?
How to verify domain ownership for Google Search Console via DNS record (with DigitalOcean and Namecheap) ?

do nothing and open a new tab in your browser.

Step 2: Go to Digitalocean

Go to your Digitalocean account

Note: if your domain name is not yet routed to digitalocean, just click on the green "Create" buton and go to Domains/DNS (see image below)

How to verify domain ownership for Google Search Console via DNS record (with DigitalOcean and Namecheap) ?
How to verify domain ownership for Google Search Console via DNS record (with DigitalOcean and Namecheap) ?

Then click on your domain name

How to verify domain ownership for Google Search Console via DNS record (with DigitalOcean and Namecheap) ?
How to verify domain ownership for Google Search Console via DNS record (with DigitalOcean and Namecheap) ?

Select TXT

How to verify domain ownership for Google Search Console via DNS record (with DigitalOcean and Namecheap) ?
How to verify domain ownership for Google Search Console via DNS record (with DigitalOcean and Namecheap) ?

enter the code that google gave you (see step 1) and @ for your hostname.

Step 3: Verify domain ownership

Go back to Google Search Console click on Verify. A message with Ownership verified should appear:

How to verify domain ownership for Google Search Console via DNS record (with DigitalOcean and Namecheap) ?
How to verify domain ownership for Google Search Console via DNS record (with DigitalOcean and Namecheap) ?

And you are done !

Image

of