named.conf.4 (2010 09)
n
named.conf(4) named.conf(4)
(BIND 9.3)
For example,
$ORIGIN com.
$ORIGIN example
WWW CNAME MAIN-SERVER
is equivalent to:
$ORIGIN example.com.
WWW CNAME MAIN-SERVER
is equivalent to:
WWW.EXAMPLE.COM. CNAME MAIN-SERVER.EXAMPLE.COM.
The $INCLUDE Directive
The
$INCLUDE directive reads and processes a file as if it were included into the file at this point.
Syntax
$INCLUDE filename [ origin ]
filename The name of the file to be included.
origin The origin for the data in the included file. The default is the current origin of the
including (parent) file.
Neither the origin field nor $ORIGIN statements in the included file affect the origin of the parent file.
Once the included file has been processed, the origin and the current record owner name revert to the
values they had prior to the
$INCLUDE directive.
Note: RFC 1035 specifies that the current origin should be restored after an
$INCLUDE
, but it is silent
on whether the current record owner name should also be restored. BIND 9 restores both of them. This
could be construed as a deviation from RFC 1035, a feature, or both.
The $TTL Directive
The
$TTL directive sets the default Time to Live (TTL) value for subsequent RRs that have undefined
TTLs.
Syntax
$TTL default-ttl
default-ttl
The default TTL value for subsequent RRs. See the Time to Live (TTL) and Time
Specification sections for more detail.
The $GENERATE Directive
The
$GENERATE directive creates a series of resource records that differ from each other only by an
iterator value.
$GENERATE is a BIND extension and not part of the standard DNS zone file format.
Syntax
$GENERATE range lhs [ ttl ][class ] type rhs
(ttl and class may be entered in either order.)
range The range of the iterator value. range can be in either of the forms: start
-stop or
start -stop /step. If the first form is used, then step is set to 1. All of start , stop , and step
must be positive.
lhs An expression that evaluates to the owner_name for each resource record that is created.
If lhs is not an absolute domain name, the current origin is appended to it.
Any single
$ symbols within lhs are replaced by the iterator value.
The
$ may optionally be followed by modifiers that change the offset from the iterator,
the field width, and the base. Modifiers are introduced by a { immediately following the
$, in the format ${offset[,width[,base]]}. For example, ${-20,3,d}, which subtracts
20 from the current value and prints the result as a decimal in a zero-padded field of 3
HP-UX 11i Version 3: September 2010 − 31 − Hewlett-Packard Company 31