Google Cloud DNS

Google Cloud DNS

Google Cloud DNS allows you to manage DNS through a CLI and also an API.
The steps involved in using Google Cloud DNS are listed below.

– Login to your project and enable Google Cloud API

– Verify domain ownership at https://www.google.com/webmasters/verification/home

– One verification method is to provide Google login credentials to your domain name provider.
Google will create a DNS TXT record, such as the one shown below.

dig example.com  txt
"google-site-verification=uHKZVGGkYgDKrWonQIy6ul6_M"

Additional verification methods are:

– Add an HTML meta tag to your site
– Use your Google Analytics account
– Use your Google Tag Manager account

MANAGING YOUR DOMAIN

Once you have verified domain ownership, you are ready to manage the domain.

– Check your quota

$ gcloud dns project-info get

– Create a test zone

$ gcloud dns managed-zone create --dns_name="test.example.com." --description="A test zone" testzone

– Get a list of Google DNS server that manage your domain

$ gcloud dns managed-zone get testzone

– Login to your domain registrar, and change the DNS servers to point to the Google DNS servers for your domain

– Get a list of records in your zone

$ gcloud dns records --zone="testzone" list

– Add a record

$ gcloud dns records --zone=testzone edit

 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s