Updating your domain's name servers

After you create a managed zone, you can change the name servers that are associated with your domain registration to point to the Cloud DNS name servers. The process will differ by domain registrar provider and you should consult the documentation for your provider to determine how to make the name server change.

If you don't already have a domain name, you can create and register a new domain name at Google Domains, or you can use a third-party domain name registrar.

For more information about DNS concepts, see the DNS Overview page.

Look up your Cloud DNS name servers

You will need to determine the name servers that have been associated with your managed zone. Different managed zones will have different name servers.


To determine your name servers in the Cloud Console:

  1. Go to the Cloud DNS page
  2. Under Zone Name, select the name of your managed zone.
  3. On the Zone details screen, click Registrar Setup at the far right of the screen.


This command returns the list of name servers that are configured to serve DNS queries for your zone.

gcloud dns managed-zones describe [EXAMPLE_ZONE]

Find the IP addresses of your Cloud DNS name servers

The IP addresses of your Cloud DNS name servers change, and may be different for users in different geographic locations.

To find the IP addresses for the name servers in the a name server shard, enter the following command:

  dig ns-cloud-a1.googledomains.com +short
  dig ns-cloud-a2.googledomains.com +short
  dig ns-cloud-a3.googledomains.com +short
  dig ns-cloud-a4.googledomains.com +short

For private zones, you can't query name servers on the public internet. Thus, it's not necessary to find their IP addresses.

To find all of the IP address ranges used by Google Cloud, see Where can I find Compute Engine IP ranges?.

Change your domain registrar's name servers for your domain

Now that you have the list of Cloud DNS name servers hosting your managed zone, update the NS records for your domain with your domain registrar. Your domain registrar might be Google Domains or a third-party registrar.

You will typically provide at least two Cloud DNS name servers to the domain registrar. To benefit from Cloud DNS's high availability, you must use all name servers.

After changing your domain registrar's name servers, it can take a while for resolver traffic to be directed to your new Cloud DNS name servers. Resolvers could continue to use your old name servers until the TTL on the old NS records expire.