Date: Mon, 24 May 1999 15:29:49 +0200 From: sthaug@nethelp.no To: dan@nfol.com Cc: mark@intrepid.net, freebsd-isp@freebsd.org Subject: Re: BIND and subnetted in-addr.arpa domains Message-ID: <29882.927552589@verdi.nethelp.no> In-Reply-To: Your message of "Mon, 24 May 1999 09:21:54 -0400 (EDT)" References: <19990524132154.642E37A101@nfol.com>
index | next in thread | previous in thread | raw e-mail
> I am unaware of an easier way to do this. Perhaps bind8 has the ability to
> make this easy.
It does. See the GENERATE zone file directive.
Steinar Haug, Nethelp consulting, sthaug@nethelp.no
----------------------------------------------------------------------
$GENERATE
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 delegations 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 one of 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.
lhs
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.
type
At present the only supported types are PTR, CNAME and NS.
rhs
Rhs is a domain name. It is processed similarly to the lhs.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?29882.927552589>
