Is anyone out there using $GENERATE to create blocks of AAAA and PTR records
for IPv6?  Particularly PTR records?

It seems easy enough to create AAAA records automatically:

$ORIGIN infracaninophile.co.uk.
$GENERATE 0-255 2001-8b0-151-1-240-0-1234-${0,0,x} AAAA 
2001:8b0:151:1:240:0:1234:${0,0,x}

but how to create the corresponding PTR records?  Since the labels for 
.ip6.arpa records are single hex digits, then I'd have to have 16 $GENERATE
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?

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 
expand to something like

0.0.0.0
1.0.0.0
2.0.0.0
...
d.f.0.0
e.f.0.0
f.f.0.0

for the example above.   

        Cheers,

        Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       Flat 3
                                                      7 Priory Courtyard
PGP: http://www.infracaninophile.co.uk/pgpkey         Ramsgate
                                                      Kent, CT11 9PW, UK

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to