Delegate sub-domain to another name server in bind…


Consider the following:

  • You own/control your name server for your zone company.com
  • You have a sub-domain you want to create as a separate zone and delegate/assign the responsibility of that sub-domain to another name server. In this case, let’s say geo.company.com is the sub-domain. The idea is that you want to create DNS records for the sub-domain (say ops1.geo.company.com) and manage those DNS records through a different DNS name server.
  • You are running your zone company.com on a bind server running on Linux

It’s actually very simple, you add the following entries to your zone file for company.com:

; Delegating the geo.company.com subdomain to another NS – being gtm.company.com
geo          IN          NS          gtm.company.com.
gtm         IN           A            10.10.1.20                  ; this is the glue record

 

Don’t forget to reset named (rndc reload). You will get a warning unless you add a second NS record. So you should have:

; Delegating the geo.company.com subdomain to another NS – being gtm.company.com
geo          IN          NS          gtm1.company.com.
geo          IN          NS          gtm2.company.com.
gtm1         IN           A            10.10.1.20                  ; this is the glue record
gtm2         IN           A            10.10.1.21                  ; this is the glue record

-H

References:

http://www.zytrax.com/books/dns/ch9/delegate.html

https://lists.isc.org/pipermail/bind-users/2001-July/030710.html

Leave a comment