Manage only a subdomain with Google Cloud DNS

gae123 picture gae123 · Apr 29, 2014 · Viewed 7.6k times · Source

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.

Answer

Robert picture Robert · Apr 29, 2014

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.