Avoiding duplicate PTR records when using $GENERATE

Mark Andrews Mark_Andrews at isc.org
Thu Oct 23 23:57:52 UTC 2008


Mark Andrews writes:
> 
> In message <71D4B163E575894FA5B170F10E628EC5014D6549 at Deimos.internal.commarc.
> co
> .nz>, "Steve Brorens" writes:
> > I've got range of 256 addresses, where I have valid PTRs for all
> > addresses generated by:
> >  
> >     $GENERATE 0-255 $ PTR   123-123.123-66-$.acme.co.nz.
> >  
> > My problem is that there are a dozen or so addresses scattered through
> > this range where I want to define specific PTR records like this:
> >  
> >     203    PTR    ftp.acme.co.nz.
> >     4      PTR    www.acme.co.nz.
> >     105    PTR    smtp.acme.co.nz.
> >  
> > However, this means that these addresses get two PTR records  -
> > generally A Bad Thing, especially for mailservers.
> >  
> > Is there a way to use $GENERATE to just "fill the gaps"?
> 
> 	No.

Also if you sort you PTR records like this it becomes pretty easy
to manage.

$GENERATE 0-3 $ PTR   123-123.123-66-$.acme.co.nz
4      PTR    www.acme.co.nz.
$GENERATE 5-104 $ PTR   123-123.123-66-$.acme.co.nz
105    PTR    smtp.acme.co.nz.
$GENERATE 106-202 $ PTR   123-123.123-66-$.acme.co.nz
203    PTR    ftp.acme.co.nz.
$GENERATE 204-255 $ PTR   123-123.123-66-$.acme.co.nz

>   
> >  - steve
> -- 
> Mark Andrews, ISC
> 1 Seymour St., Dundas Valley, NSW 2117, Australia
> PHONE: +61 2 9871 4742                 INTERNET: Mark_Andrews at isc.org
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark_Andrews at isc.org


More information about the bind-users mailing list