0N/A<!
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
0N/A - Copyright (C) 1999, 2000 Internet Software Consortium. 0N/A - Permission to use, copy, modify, and distribute this software for any 0N/A - purpose with or without fee is hereby granted, provided that the above 2362N/A - copyright notice and this permission notice appear in all copies. 2362N/A - THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS 0N/A - ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES 0N/A - OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE 0N/A - CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 0N/A - DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 0N/A - PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS 0N/A - ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 2362N/A <
TITLE>Master File Format</
TITLE>
0N/A<
H2>BIND Configuration Guide -- Master File Format</
H2>
0N/AThe Master File Format was initially defined in
0N/Aand has subsequently been extended.
0N/AWhile the Master File Format is class independent all records in a
0N/AMaster File must be of the same class.
0N/A<
H3>Master File Directives</
H3>
0N/ASyntax: <
CODE>$ORIGIN <domain-name> [<comment>]</
CODE>
0N/A<
CODE>$ORIGIN</
CODE> set the domain name that will be appended to any
0N/AWhen a zone is first read in there is an implict <
CODE>$ORIGIN</
CODE>
0N/AThe current <
CODE>$ORIGIN</
CODE> is appended to the domain specified in the
<
CODE>$ORIGIN</
CODE> argument if it is not absolute.
Syntax: <
CODE>$INCLUDE <filename> [<origin>] [<comment>]</
CODE>
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 <origin> is specified differs from that
The origin and current domain revert to the values they were prior to the
<
CODE>$INCLUDE</
CODE> once the file has been read.
Syntax: <
CODE>$TTL <default-ttl> [<comment>]</
CODE>
Set the default Time To Live (TTL) for subsequent records with undefined
TTL's. Valid TTL's are of the range 0-2147483647.
<
CODE>$TTL</
CODE> is defined in
<
H3>BIND Master File Extentions</
H3>
Syntax: <
CODE>$GENERATE <range> <lhs> <type> <rhs>
<
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
$GENERATE 1-2 0 NS SERVER$.EXAMPLE.
$GENERATE 1-127 $ CNAME $.0
This can be one of two forms:
<
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.
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.
At present the only supported types are PTR, CNAME and NS.
Rhs is a domain name. It is processed similarly to the lhs.
<
H2>Resource Records</
H2>
Syntax: <
CODE>{<domain>|@|<blank>}
[<ttl>] [<class>] <type> <rdata>
All resource records have the same basic syntax.
<
DT><
CODE>domain</
CODE></
DT>
Specify the domain name for this record. If it is not absolute the
current <
CODE>$ORIGIN</
CODE> is appended.
Use the current <
CODE>$ORIGIN</
CODE> for the domain name for this record.
<
DT><
CODE>blank</
CODE></
DT>
Use the last specified domainname.
<
DT><
CODE>ttl</
CODE></
DT>
This specifies how long this record will be cached by caching servers.
The valid range is 0-2147483647.
<
DT><
CODE>class</
CODE></
DT>
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
<
DT><
CODE>type</
CODE></
DT>
Specify the type of this record. This describes the contents of the rdata
<
DT><
CODE>rdata</
CODE></
DT>
This is the value of the resource record.