Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What happens when you have two Google Cloud projects with overlapping DNS zones?

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?

like image 940
DuXati Avatar asked Oct 09 '19 12:10

DuXati


People also ask

Can DNS zones overlap?

Overlapping forwarding zones Because Cloud DNS forwarding zones are a type of Cloud DNS managed private zone, you can create multiple zones that overlap.

How do DNS zones and records interact with each other?

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.

What is DNS peering in GCP?

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.

What is the difference between a managed public zone and a managed private zone in cloud domain name system DNS )?

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.


1 Answers

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.

like image 118
jtyr Avatar answered Nov 15 '22 09:11

jtyr