Cloud DNS Google Cloud

Setting up Google Cloud DNS for your domain

Domain Name System(DNS) is a distributed database which lets you store IP addresses and other data and looks them up by names.

In this tutorial we point our domain registerd in Google Domains to Google Cloud DNS


Commonly used DNS Records

  • A Record – IPv4 address, maps IP of the host with a domain.
  • AAAA Record – IPv6 address, mainly used in HTTP(S), SSL Proxy, and TCP Proxy Load balancing.
  • CNAME – Alias for one name to another (, points to
  • MX – Manages where emails should be delivered.
  • TXT – Any text content, like domain owner verification text or something like that

Why use Google Cloud DNS?

  1. To have everything in one place for your project.
  2. Managed by Google and it’s fast, reliable and secure with low-latency.
  3. Uses Anycast (requests are rooted to nearest location).
  4. Low Pricing (0.2/month per zone).

How to point your domain to Google Cloud DNS?

Go to Network Services >> Cloud DNS in your GCP Console

Click Create Zone

Google Cloud DNS Zone

Choose Public for the Zone type.

Enter your desired name (recommended to use your domain name without extension .com or for the Zone name

Enter your domain name for the DNS name. For example,

Keep the Off setting selected for DNSSEC.

Click Create.

Create new A record

Once the DNS zone is created you will be provided with default four NS records and SOA records.

NS Records

Now you can create a new record to point your domain to your VM Instance’s external IP address.

  1. Click Add record set.
  2. Select Resource Record Type to “A”.
  3. IPv4 Address with the IP address of your instance that you have reserved earlier.
  4. Leave everything to default.
  5. Click create
Create A record

Create new CNAME record

  1. Enter DNS name “www”.
  2. Select Resource Record Type to “CNAME”.
  3. Canonical name as your domain name followed by a period (
  4. Leave everything to default.
  5. Click create
Create CNAME record

Update your domain name servers

Login to your domain registrar (for example Google Domains) and go to DNS settings.

Select Use custom name servers.

Add the four NS records provided to you when you created the zone for your domain.

Update nameservers

Save your settings.

Now your domain name is pointed to Google Cloud VM Instance and uses Google Cloud DNS.

Learn how to setup DNSSEC in Cloud DNS.

Cloudbooklet builds a large collection of Linux based guides and tutorials on Cloud platforms like Google Cloud, AWS, Azure, DigitalOcean and more

Write A Comment

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.