HP-UX Reference (11i v2 03/08) - 4 File Formats (vol 8)

n
named.conf(4) named.conf(4)
WWW.EXAMPLE.COM. CNAME MAIN-SERVER.EXAMPLE.COM.
The $INCLUDE Directive
Syntax:
$INCLUDE filename [origin][comment ]
Read and process the file filename as if it were included into the file at this point. If origin is specified the
file is processed with
$ORIGIN set to that value, otherwise the current
$ORIGIN is used. The origin and
the current domain name revert to the values they had prior to the
$INCLUDEoncethefilehasbeen
Note: RFC 1035 specifies that the current origin should be restored after an
$INCLUDE, but it is silent
on whether the current domain 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
Syntax:
$TTL default-ttl [comment]
Set the default Time To Live (TTL) for subsequent records with undefined TTLs. Valid TTLs are of the
range 0-2147483647 seconds.
$TTL is defined in RFC 2308.
BIND Master File Extension: the $GENERATE Directive
Syntax:
$GENERATE range lhs type rhs [comment]
$GENERATE is used to create a series of resource records that only differ from each other by an iterator.
$GENERATE can be used to easily generate the sets of records required to support sub /24 reverse delega-
tions described in RFC 2317: Classless IN-ADDR.ARPA delegation.
$ORIGIN 0.0.192.IN-ADDR.ARPA.
$GENERATE 1-2 0 NS SERVER$.EXAMPLE.
$GENERATE 1-127 $ CNAME $.0
is equivalent to
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
.
range This can be either of the two 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.
lhslhs 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 you need to escape the $ using a backslash \, e.g. \$. The $ may
optionally be followed by modifiers which change the offset from the interator, field width and
base. Modifiers are introduced by a { immediately following the $ as ${offset[,width[,base]]}.
e.g. ${-20,3,d} which subtracts 20 from the current value, prints the result as a decimal in a
zero padded field of with 3. Available output forms are
decimal (d), octal (o), and
hexadecimal (x or X for uppercase). The default modifier is ${0,0,d}. If the lhs is not
absolute, the current $ORIGIN is appended to the name.
For compatibility with earlier versions $$ is still recognized a indicating a literal $ in the out-
put.
type At present the only supported types are PTR, CNAME, DNAME, A, AAAA and NS.
rhsrhs is a domain name. It is processed similarly to lhs.
The
$GENERATE directive is a BIND extension and not part of the standard zone file format.
WARNINGS
IPv6 is supported on HP-UX 11i Version 1.0, with the optional IPv6 software installed. Currently, IPv6 is
not supported on systems running HP-UX 11i Version 1.6.
HP-UX 11i Version 2: August 2003 26 Hewlett-Packard Company Section 4201