[ Web Proxy ]
URL:
Viewing: https://cloud.google.com/compute/docs/networking/zonal-dns [Back]  [Original]

Overview of using Zonal DNS  |  Compute Engine  |  Google Cloud Documentation Skip to main content
Google Cloud Documentation [Google Cloud Documentation]
Send feedback

Overview of using Zonal DNS Stay organized with collections Save and categorize content based on your preferences.

This document describes the benefits and recommended approach for migrating your workloads and organization from global DNS to zonal DNS.

Zonal DNS mitigates the risk of cross-regional outages and improves the overall reliability of your projects on Compute Engine.

Benefits of using zonal DNS names

Google Cloud offers two types of internal DNS names: zonal and global.

Zonal DNS

Zonal DNS names include the name of your Compute Engine instance, the zone where your instance is located, and the project that owns the instance. These names are resolved within a specific zone. As a result, my-vm.zone1.google.com is unique to zone1 and is represents a different instance than my-vm.zone2.google.com. This isolation provides a key benefit:

  • Improved availability: If one zone experiences an outage, then it doesn't affect DNS resolution in other zones, leading to higher availability for your applications.

Zonal DNS is the default internal DNS resolution method for organizations that were created after September 6, 2018.

Global DNS

Global DNS names don't include the zone where the instance is located. This means each instance must have a unique DNS name across all zones within your project. This approach has a significant drawback:

  • Single point of failure: If the global DNS service experiences issues, then it can impact all your instances, regardless of the zone they are located in. This can cause the following problems:
    • Unable to create new instances: You might be unable to create new instances in any region that is experiencing control plane failures.
    • Service disruptions: Critical Compute Engine services such as autoscaling or autohealing for managed instance groups (MIGs) might not function correctly.
Note: As of September 6, 2018, Zonal DNS is the default internal DNS system for new organizations on Google Cloud. Zonal DNS is offered at no charge, and it is not a part of Cloud DNS.

Recommended approach to migrate from global DNS to zonal DNS

Generally, the global DNS to zonal DNS migration process has two steps:

  1. Configure new projects to use zonal DNS by default.
  2. Migrate existing projects from using global DNS to zonal DNS by changing the internal dns metadata setting.

Some projects may not be compatible with zonal DNS. These projects require analysis and troubleshooting before migrating them to zonal DNS.

Caution: Enabling zonal DNS names across your entire project applies zonal DNS settings to Compute Engine instances in the following services:

Project Compatibility Guidance

Compute Engine checks your preceding 30 days of internal DNS history to determine if you can migrate to Zonal DNS without performing any code changes. Even if your project is recommended for migration, Google recommends you to verify that your specific workload configuration is ready for the switch to Zonal DNS. To ensure that everything runs smoothly after the migration, review the following environmental factors:

1. DNS Search Domains (Linux or Unix only)

When you switch to Zonal DNS, Compute Engine adds a new domain to the instance's search path.

How to verify your environment:

  1. Connect to your Linux instance and check the glibc version by running the following command:

    ldd --version
    
  2. If you are on glibc version 2.25 or earlier, then view your current search domains by running the following command:

    cat /etc/resolv.conf
    

    The search line in the output shows the current search domains. You should have no more than five domains to safely add a new search domain and avoid exceeding the OS limit of six.

How to mitigate:

If your instance exceeds the search domain limit on an affected OS version, then you can resolve the limitation using either of the following approaches:

2. Instance Name Length (Legacy Operating Systems)

Zonal DNS appends a zonal qualifier to the internal Fully Qualified Domain Name (FQDN), making the overall name longer.

Modern Windows OS images are unaffected.

How to mitigate:

If an instance name on a legacy OS exceeds 15 characters after appending the zonal qualifier, then you can address the issue by using either of the following methods:

3. Shared VPC Networks

If your infrastructure uses service projects connected using a Shared VPC, then name resolution behaves slightly differently after you switch to using Zonal DNS.

What's next

Send feedback

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-08-11 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-11 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page