opennetadmin / build_bind

OpenNetAdmin plugin to manage and build BIND DNS server configurations
13 stars 13 forks source link

Generate glue records #11

Open 8191 opened 9 years ago

8191 commented 9 years ago

If NS server is not part of actual zone, a sticky record should be added, if the A record of the NS part is known to ONA.

mattpascoe commented 9 years ago

I think I understand what it is you are requesting here but could you provide a bit more detail so that I can ensure I understand your request. Thanks.

8191 commented 9 years ago

Sorry, the correct term for that would be "glue record".

Assume your zone bar.net looks like:

$ORIGIN bar.net.
@                  IN  SOA   dns1.foo.bar.net. hostmaster (123 28000 3600 240000 3600)
bar.net.           IN  NS    dns1.foo.bar.net.
bar.net.           IN  NS    dns2.kilo.bar.net.

One would require the A or AAAA records of dns1.foo.bar.net or dns2.kilo.bar.net to ever correctly retrieve the bar.net zone or any of its sub-zones (which in fact contains the DNS server of the zone itself). Therefore the zone should be extended by

dns1.foo.bar.net.  IN  AAAA  2001:0DB8::4ACD:ABCD
dns2.kilo.bar.net. IN  A     203.0.113.4

Bind also kindly reminds you to do so, in case it was forgotten (as currently the case with ONA build_bind):

zone bar.net/IN: NS 'dns1.foo.bar.net' has no address records (A or AAAA)
zone bar.net/IN: NS 'dns2.kilo.bar.net' has no address records (A or AAAA)