CNAME chasing
CNAME chasing refers to a subsequent lookup of a DNS name returned from a CNAME
record answer to an initial query. Public DNS resolvers perform subsequent
lookup of CNAME answers according to their configuration. Generally, public
resolvers chase CNAME answers in any public zones.
When Trusted Cloud VMs use their metadata server (169.254.169.254
) as
their name server, and no alternative name server is defined in an outbound
server policy of the VPC network, Cloud DNS performs
CNAME chasing as described in the following table.
Source of CNAME answer |
Cloud DNS resolver behavior |
Cloud DNS private zone
with local records (not a forwarding zone)
|
Cloud DNS systems perform queries for the CNAME answer in
Cloud DNS private zones that are authorized for the
VPC network.
Cloud DNS systems don't perform queries for
the CNAME answer in any public DNS zones, including Cloud DNS
public zones.
|
Cloud DNS forwarding zone
|
Cloud DNS systems don't perform queries for
any CNAME answers received from forwarding target name servers.
|
Cloud DNS response policy zone
|
Cloud DNS systems don't perform queries for
any CNAME answers received from local data rules of response policy
zones.
|
What's next
- To find solutions for common issues that you might encounter when using
Cloud DNS, see Troubleshooting.
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 2025-08-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["CNAME chasing is the process where a DNS resolver performs a subsequent lookup of a DNS name returned from a CNAME record."],["When Google Cloud VMs use the metadata server as their name server, Cloud DNS will follow specific CNAME chasing rules based on the source of the CNAME answer."],["Cloud DNS performs queries for CNAME answers within its private zones if those zones have local records and are authorized for the VPC network, but does not check public DNS zones."],["Cloud DNS does not perform queries for CNAME answers received from forwarding target name servers or from response policy zones."],["Cloud DNS will query both the internal DNS service and public zones, including its own public zones, when the CNAME answer is sourced from a Cloud DNS public zone, but does not perform queries for private zones in this scenario."]]],[]]