Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Manage only a subdomain with Google Cloud DNS

I own a domain foo.com and I am happy with where its DNS is hosted. I do want to delegate to Google Cloud DNS only a new subdomain bar.foo.com.

  1. Is this possible?
  2. Could you point me to example code?
  3. What I need to do to the DNS settings of the servers hosting foo.com.
like image 682
gae123 Avatar asked Apr 29 '14 06:04

gae123


People also ask

Can a subdomain have its own DNS?

Subdomains can point to the same DNS server as the associated domain name, or to their own DNS zone.

How do I point a DNS to a subdomain?

Click on the DNS tab and scroll to the record card (or quickly jump to the DNS records for that domain by clicking the button in the top right). From there, click the Add record drop-down button, and select the type of record you want to create. A , ALIAS , and CNAME records will all create a new subdomain.

How does DNS work with a subdomain?

In the Domain Name System (DNS) hierarchy, a subdomain is a domain that is a part of another (main) domain. For example, if a domain offered an online store as part of their website example.com , it might use the subdomain shop.example.com .


1 Answers

You should just be able to create NS records in foo.com called bar and enter the nameservers (one per entry) they gave you. That's called a "zone cut" and anybody looking up, say, baz.bar.foo.com will be told by foo.com to check with Cloud DNS (the same way com told them to check with foo.com). When they ask Cloud DNS, they'll get the answer.

So -

  1. Set up the zone bar.foo.com on Google Cloud DNS
  2. Add NS records at foo.com listing the Cloud DNS nameservers given
  3. ... that's it! Try it out.
like image 136
Robert Avatar answered Oct 27 '22 11:10

Robert