HP-UX Reference (11i v2 07/12) - 4 File Formats (vol 8)
n
named.conf(4) named.conf(4)
the current domain name revert to the values they had prior to the
$INCLUDE once the file has been read.
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-2147483647seconds. $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 option-
ally 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 pad-
ded field of with 3. Available output forms are decimal (d), octal (o), and
hexade-
cimal
(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 output.
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.
AUTHOR
named.conf was developed by Internet Software Consortium (ISC).
SEE ALSO
kill(1), hosts_to_named(1M), sig_named(1M), signal(2), gethostent(3N), resolver(3N), resolver(4), host-
name(5), RFC 882, RFC 883, RFC 973, RFC 974, RFC 1032, RFC 1033, RFC 1034, RFC 1035, RFC 1123.
HP-UX 11i Version 2: December 2007 Update − 26 − Hewlett-Packard Company 233