12

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.
gae123
  • 8,589
  • 3
  • 35
  • 40

1 Answers1

22

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.
Robert
  • 6,412
  • 3
  • 24
  • 26
  • OK I will try it out next. I guess the code should be the same as shown at GCDNS documentation except I use the subdomain where they use the full domain name. – gae123 Apr 29 '14 at 20:50
  • 1
    On the Google side, it's just a normal zone. Use the full name when you create it, since the fact that you happen to control the parent doesn't matter on the child side (imagine the parent were 'com'). The trick here is in the parent zone, which needs to delegate authority over the subdomain to GCDNS. That's what those NS records do. – Robert Apr 30 '14 at 16:36
  • what if you have DNSSEC on foo.com? Does it affect bar.foo.com? Or do I just leave DNSSEC off for bar.foo.com. And for the SOA, do I leave that alone correct? – Maciek Semik Jul 23 '23 at 00:41