In message <4a8bd747.6000...@infracaninophile.co.uk>, Matthew Seaman writes:
> Is anyone out there using $GENERATE to create blocks of and PTR reco=
> rds
> for IPv6? Particularly PTR records?
>
> It seems easy enough to create records automatically:
>
> $ORIGIN infracaninophile.co.uk.
> $GENERATE 0-255 2001-8b0-151-1-240-0-1234-${0,0,x} 2001:8b0:151:1:24=
> 0:0:1234:${0,0,x}
>
> but how to create the corresponding PTR records? Since the labels for=20
> =2Eip6.arpa records are single hex digits, then I'd have to have 16 $GENE=
> RATE
> lines to create 256 PTR records like so:
>
> $ORIGIN 1.0.0.0.1.5.1.0.0.b.8.0.1.0.0.2.ip6.arpa.
> $GENERATE 0-15 ${0,0,x}.0.0.0.4.3.2.1.0.0.0.0.0.4.2.0 PTR 2001-8b0-151-1=
> -240-0-1234-${0,0,x}.infracaninophile.co.uk.
> $GENERATE 16-31 ${0,0,x}.1.0.0.4.3.2.1.0.0.0.0.0.4.2.0 PTR 2001-8b0-151-1=
> -240-0-1234-${0,0,x}.infracaninophile.co.uk.
> $GENERATE 32-47 ${0,0,x}.2.0.0.4.3.2.1.0.0.0.0.0.4.2.0 PTR 2001-8b0-151-1=
> -240-0-1234-${0,0,x}.infracaninophile.co.uk.
> etc...
>
> which seems to pretty much obviate the point of using $GENERATE in the
> first place. Other than writing a few scripts to generate the list
> records directly are there any alternatives?
See BIND 9.7.0a2.
2540. [func] Add a nibble mode to $GENERATE. [RT #18872]
Mind you I doubt if many people will use it. A /64 is way to big
to pre-populate. It would be much better to just let the reverse be
populated by the nodes themselves using TCP as a authenicator. See
update-policy grant tcp-self.
Mark
> It would be handy if there was a format code eg 'P' that produced
> reverse order hex digits separated by '.' -- so eg ${0,4,P} would=20
> expand to something like
>
> 0.0.0.0
> 1.0.0.0
> 2.0.0.0
> =2E..
> d.f.0.0
> e.f.0.0
> f.f.0.0
>
> for the example above. =20
>
> Cheers,
>
> Matthew
>
> --=20
> Dr Matthew J Seaman MA, D.Phil. Flat 3
> 7 Priory Courtyard
> PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
> Kent, CT11 9PW, UK
--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: ma...@isc.org
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users