Creating Sub-domains
Mark_Andrews at isc.org
Mark_Andrews at isc.org
Wed Sep 10 00:45:33 UTC 2003
> Barry Margolin <barry.margolin at level3.com> wrote in
> news:bjis9h$acj$1 at sf1.isc.org:
>
> > In article <bjiq33$891$1 at sf1.isc.org>,
> > Octavio Novoa <ONOVOA at diveo.net.pe> wrote:
> >>Hi, I know this is a silly question, but I have no clue about how to
> >>create a sub-domain in my Bind DNS. Can some of you tell me where can
> >>I get some documentation on that?
> >
> > If you mean a subzone, you create it just like any other zone. The
> > only thing special is that the parent zone should contain NS records
> > for the subdomain, listing the nameservers for the subdomain.
> >
> Could you possibly point me to a valid example of how this is done? I can't
> make it work so that the box running BIND for the master domain can resolve
> the subdomain (which lives elsewhere) correctly. Or anything through the
> master domain server.
Parent zone:
sub.example.net. NS ns1.example.com. ; glue not required
; not below parent.
sub.example.net. NS ns1.sub.example.net. ; glue required (supply)
; below child.
sub.example.net. NS ns1.sub2.example.neta ; glue may be required (supply)
; below parent.
ns1.sub.example.net. A 1.1.1.2 ; glue address record
ns1.sub.example.net. AAAA 2002::1.1.1.2 ; glue address record
ns1.sub2.example.net. A 1.1.1.1 ; glue address record
Child zone:
sub.example.net. SOA ...
sub.example.net. NS ns1.example.com.
sub.example.net. NS ns1.example.net.
sub.example.net. NS ns1.sub.example.net.
ns1.sub.example.net. A 1.1.1.2
ns1.sub.example.net. AAAA 2002::1.1.1.2
Note if the parent server is using global forwarding you may
want to override it.
options {
...
forwarders { .... };
};
zone "example.net" {
...
forwarders { /* empty */ }; // turn off forwarding for sub zones.
};
Mark
>
> --
> Larry Flynt for Governor
> Bringing dignity back to the Governor's Mansion
>
> Terry Austin
> taustin at hyperbooks.com
>
--
Mark Andrews, Internet Software Consortium
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: Mark.Andrews at isc.org
More information about the bind-users
mailing list