The scenario:
- DNS zone
myzone.comdefined in BIND. - Authoritative name server at
123.16.123.1. - Subzone
sub.myzone.comwith an authoritative name server at123.16.123.10. - Wishing to forward sub-zone to authoritative name server.
$ORIGIN myzone.com.
$TTL 1D
@ IN SOA ns1.myzone.com. hostmaster.myzone.com. (
2015010100 ; serial
21600 ; refresh
3600 ; retry
604800 ; expire
86400 ) ; minimum TTL
;
@ IN NS ns1
ns1 IN A 123.16.123.1 ; glue record
ns1sub IN A 123.16.123.10 ; glue record
;
;
$ORIGIN sub.myzone.com.
$TTL 1D
@ IN NS ns1sub.myzone.com.
- Resolver asks for answer to
foo.sub.myzone.comfrom name server. - Via
sub.myzone.comzone, is given answer ofns1sub.myzone.comas the authoritative name server. - Resolver able to resolve IP address of
123.16.123.10forns1sub.myzone.comvia parent zone A "glue" record. - Now resend original query of
foo.sub.myzone.comto nameserver server at123.16.123.10. - All done.