A question about Google Cloud DNS: what happens when you create two Google Cloud projects (e.g., ProjectA and ProjectB), each with a public managed DNS zone with the same top-level domain (e.g., example.com)?
More precisely: will the sub-domains of both (e.g., a.example.com in ProjectA and b.example.com in ProjectB) both be resolvable by clients?
And more exotically: what would happen if both projects would define the same subdomain (e.g., an A record for overlapping.example.com)?
I've read Google's documentation on overlapping zones, but that does not seem to give an answer to these questions.
Any experiences?
Overlapping forwarding zones Because Cloud DNS forwarding zones are a type of Cloud DNS managed private zone, you can create multiple zones that overlap.
A DNS zone is used to host the DNS records for a particular domain. To start hosting your domain in Azure DNS, you need to create a DNS zone for that domain name. Each DNS record for your domain is then created inside this DNS zone.
DNS peering is a type of zone in Cloud DNS that allows you to send DNS requests from a specific sub-domain to another Cloud DNS zone configured in another VPC—and it lets you do just that! DNS peering in action.
Cloud DNS offers both public zones and private managed DNS zones. A public zone is visible to the public internet, while a private zone is visible only from one or more Virtual Private Cloud (VPC) networks that you specify.
If you have a public domain managed in one Project and you want to setup subdomain in a different Project then you can follow this:
Let's have Project A that contains Zone X for domain.com
that is registered with Google's NS servers ns-cloud-a{1..4}.googledomains.com
.
Then let's have Project B that contains Zone Y for dev.domain.com
that is registered with Google's NS servers ns-cloud-b{1..4}.googledomains.com
.
In order to make domain names from Zone Y public, create NS
record for dev.domain.com
that points to ns-cloud-b{1..4}.googledomains.com
in the Zone X.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With