master.html revision 9bff67898d55cddfcec9ce30cc2b1bb6211ec691
7f18e8ab01ce21c98cc7b9f58ffe5e771ebbb64eLiam P. White<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
7f18e8ab01ce21c98cc7b9f58ffe5e771ebbb64eLiam P. White<!--
ad7e78cb16ace844160e613742645e012fd22cc9kiirala - Copyright (C) 1999, 2000 Internet Software Consortium.
ad7e78cb16ace844160e613742645e012fd22cc9kiirala -
ad7e78cb16ace844160e613742645e012fd22cc9kiirala - Permission to use, copy, modify, and distribute this software for any
ad7e78cb16ace844160e613742645e012fd22cc9kiirala - purpose with or without fee is hereby granted, provided that the above
ad7e78cb16ace844160e613742645e012fd22cc9kiirala - copyright notice and this permission notice appear in all copies.
ad7e78cb16ace844160e613742645e012fd22cc9kiirala -
ad7e78cb16ace844160e613742645e012fd22cc9kiirala - THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
ad7e78cb16ace844160e613742645e012fd22cc9kiirala - ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
ad7e78cb16ace844160e613742645e012fd22cc9kiirala - OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
ad7e78cb16ace844160e613742645e012fd22cc9kiirala - CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
ad7e78cb16ace844160e613742645e012fd22cc9kiirala - DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
ad7e78cb16ace844160e613742645e012fd22cc9kiirala - PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
ad7e78cb16ace844160e613742645e012fd22cc9kiirala - ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
ad7e78cb16ace844160e613742645e012fd22cc9kiirala - SOFTWARE.
ad7e78cb16ace844160e613742645e012fd22cc9kiirala-->
d9a7c806ee7f408ddb61ff4f233c9d96111ee2b5johanengelen
d9a7c806ee7f408ddb61ff4f233c9d96111ee2b5johanengelen<HTML>
ad7e78cb16ace844160e613742645e012fd22cc9kiirala<HEAD>
ad7e78cb16ace844160e613742645e012fd22cc9kiirala <TITLE>Master File Format</TITLE>
ad7e78cb16ace844160e613742645e012fd22cc9kiirala</HEAD>
ad7e78cb16ace844160e613742645e012fd22cc9kiirala
ad7e78cb16ace844160e613742645e012fd22cc9kiirala<BODY>
ad7e78cb16ace844160e613742645e012fd22cc9kiirala<H2>BIND Configuration Guide -- Master File Format</H2>
ad7e78cb16ace844160e613742645e012fd22cc9kiirala
8635140fb4734dae6ae5f42e1db9778749ef024aKrzysztof Kosiński<HR>
dff9bb0d25ad38c515c32e2c76a20e747c8eed10Krzysztof Kosiński
1cf2607271f83cc4b20ccace552395d793055c90Krzysztof Kosiński<P>
d1eeafe871c5909edd05ee72dfa603533ad39a87Krzysztof KosińskiThe Master File Format was initially defined in
ad7e78cb16ace844160e613742645e012fd22cc9kiirala<A HREF=http://ds.internic.net/rfc/rfc1035.txt>RFC 1035</A>
ad7e78cb16ace844160e613742645e012fd22cc9kiiralaand has subsequently been extended.
ad7e78cb16ace844160e613742645e012fd22cc9kiirala<P>
ad7e78cb16ace844160e613742645e012fd22cc9kiiralaWhile the Master File Format is class independent all records in a
ad7e78cb16ace844160e613742645e012fd22cc9kiiralaMaster File must be of the same class.
ad7e78cb16ace844160e613742645e012fd22cc9kiirala
ad7e78cb16ace844160e613742645e012fd22cc9kiirala<H3>Master File Directives</H3>
ad7e78cb16ace844160e613742645e012fd22cc9kiirala<H4>$ORIGIN</H4>
d9a7c806ee7f408ddb61ff4f233c9d96111ee2b5johanengelenSyntax: <CODE>$ORIGIN &lt;domain-name&gt; [&lt;comment&gt;]</CODE>
d9a7c806ee7f408ddb61ff4f233c9d96111ee2b5johanengelen<P>
ad7e78cb16ace844160e613742645e012fd22cc9kiirala<CODE>$ORIGIN</CODE> set the domain name that will be appended to any
ad7e78cb16ace844160e613742645e012fd22cc9kiiralaunqualified records.
ad7e78cb16ace844160e613742645e012fd22cc9kiiralaWhen a zone is first read in there is an implict <CODE>$ORIGIN</CODE>
ad7e78cb16ace844160e613742645e012fd22cc9kiirala&lt;zone-name&gt;.
ad7e78cb16ace844160e613742645e012fd22cc9kiiralaThe current <CODE>$ORIGIN</CODE> is appended to the domain specified in the
ad7e78cb16ace844160e613742645e012fd22cc9kiirala<CODE>$ORIGIN</CODE> argument if it is not absolute.
ad7e78cb16ace844160e613742645e012fd22cc9kiirala
ad7e78cb16ace844160e613742645e012fd22cc9kiirala<PRE>
ad7e78cb16ace844160e613742645e012fd22cc9kiirala$ORIGIN EXAMPLE.
ad7e78cb16ace844160e613742645e012fd22cc9kiirala$ORIGIN MYZONE
ad7e78cb16ace844160e613742645e012fd22cc9kiiralaWWW CNAME MAIN-SERVER
a4030d5ca449e7e384bc699cd249ee704faaeab0Chris Morgan</PRE>
is equivlent to
<PRE>
WWW.MYZONE.EXAMPLE. CNAME MAIN-SERVER.MYZONE.EXAMPLE.
</PRE>
<H4>$INCLUDE</H4>
Syntax: <CODE>$INCLUDE &lt;filename&gt; [&lt;origin&gt;] [&lt;comment&gt;]</CODE>
<P>
Read and process the file filename as if it was included into the file at this
point.� If origin is specified the file is processed with <CODE>$ORIGIN</CODE>
set to that value otherwise the current <CODE>$ORIGIN</CODE> is used.
<I>NOTE: The behaviour when &lt;origin&gt; is specified differs from that
described in
<A HREF=http://ds.internic.net/rfc/rfc1035.txt>RFC 1035</A>.</I>
<P>
The origin and current domain revert to the values they were prior to the
<CODE>$INCLUDE</CODE> once the file has been read.
<H4>$TTL</H4>
Syntax: <CODE>$TTL &lt;default-ttl&gt; [&lt;comment&gt;]</CODE>
<P>
Set the default Time To Live (TTL) for subsequent records with undefined
TTL's. Valid TTL's are of the range 0-2147483647.
<P>
<CODE>$TTL</CODE> is defined in
<A HREF=http://ds.internic.net/rfc/rfc2308.txt>RFC 2308</A>.
<H3>BIND Master File Extentions</H3>
<H4>$GENERATE</H4>
Syntax: <CODE>$GENERATE &lt;range&gt; &lt;lhs&gt; &lt;type&gt; &lt;rhs&gt;
[&lt;comment&gt;]</CODE>
<P>
<CODE>$GENERATE</CODE> is used to create a series of resource records
that only differ from each other by an iterator. <CODE>$GENERATE</CODE>
can be used to easily generate the sets of records required to support
sub /24 reverse delegations described in
<A HREF=http://ds.internic.net/rfc/rfc2317.txt>RFC 2317: Classless IN-ADDR.ARPA delegation</A>.
<PRE>
$ORIGIN 0.0.192.IN-ADDR.ARPA.
$GENERATE 1-2 0 NS SERVER$.EXAMPLE.
$GENERATE 1-127 $ CNAME $.0
</PRE>
is equivalent to
<PRE>
0.0.0.192.IN-ADDR.ARPA NS SERVER1.EXAMPLE.
0.0.0.192.IN-ADDR.ARPA NS SERVER2.EXAMPLE.
1.0.0.192.IN-ADDR.ARPA CNAME 1.0.0.0.192.IN-ADDR.ARPA
2.0.0.192.IN-ADDR.ARPA CNAME 2.0.0.0.192.IN-ADDR.ARPA
...
127.0.0.192.IN-ADDR.ARPA CNAME 127.0.0.0.192.IN-ADDR.ARPA
</PRE>
<DL>
<DT>range</DT>
<DD>
This can be one of two forms:
<I>start</I>-<I>stop</I>
or
<I>start</I>-<I>stop</I>/<I>step</I>. If the first form is
used then step is set to 1. All of start, stop and step must be positive.
<DT>lhs</DT>
<DD>
Lhs describes the owner name of the resource records to be created.
Any single $ symbols within the LHS side are replaced by the iterator value.
To get a $ in the output use a double $, e.g. $$. If the lhs is not absolute
the current $ORIGIN is appended to the name.
<DT>type</DT>
<DD>
At present the only supported types are PTR, CNAME and NS.
<DT>rhs</DT>
<DD>
Rhs is a domain name. It is processed similarly to the lhs.
<DD>
</DL>
<H2>Resource Records</H2>
Syntax: <CODE>{&lt;domain&gt;|@|&lt;blank&gt;}
[&lt;ttl&gt;] [&lt;class&gt;] &lt;type&gt; &lt;rdata&gt;
[&lt;comment&gt;]</CODE>
<P>
All resource records have the same basic syntax.
<DL>
<DT><CODE>domain</CODE></DT>
<DD>
Specify the domain name for this record. If it is not absolute the
current <CODE>$ORIGIN</CODE> is appended.
<DT><CODE>@</CODE></DT>
<DD>
Use the current <CODE>$ORIGIN</CODE> for the domain name for this record.
<DT><CODE>blank</CODE></DT>
<DD>
Use the last specified domainname.
<DT><CODE>ttl</CODE></DT>
<DD>
This specifies how long this record will be cached by caching servers.
The valid range is 0-2147483647.
<DT><CODE>class</CODE></DT>
<DD>
Specify the class of this record. This is usually redundent as the
class of a zone is specfied in the configuration file prior to reading
the zone file.
<DT><CODE>type</CODE></DT>
<DD>
Specify the type of this record. This describes the contents of the rdata
section.
<DT><CODE>rdata</CODE></DT>
<DD>
This is the value of the resource record.
</DL>
</BODY>
</HTML>