bind-users March 2010 archive
Main Archive Page > Month Archives  > bind-users archives
bind-users: Re: PTR format question

Re: PTR format question

From: groups <groups_at_nospam>
Date: Sun Mar 21 2010 - 00:04:58 GMT
To: bind-users@isc.org

> First off, please don't grab an unrelated message and reply to it when
> starting a new thread. Please actually post a new message.
>
Doug..
I grabbed the wrong thread..
Actually double posted too.. :-/

>> In the process of cleaning up a much neglected PTR file
>>
>> Bind: 9.6.2.1
>> OS: CentOS 5.4
>>
>> Current PTR in this format: (1 tab between entries)
>>
>> $ORIGIN 58.172.in-addr.arpa.
>> $ORIGIN 0.58.172.in-addr.arpa.
>
> Including $ORIGIN in the body of the zone file is usually a bad idea,
> and almost always unnecessary. It's definitely a bad idea to do it twice
> in a row with different $ORIGINs, and a worse idea to include that same
> thing multiple times.
>
>> 11 PTR nat-172-58-0-11.example.com.
>> 12 PTR nat-172-58-0-12.example.com.
>>
>> I have to redo the entire subnets.. it will be a very large file..
>>
>> My question is this the "most efficient" way to do this..?
>
> Sorry, it's not at all clear what you have to change. Are you saying
> that you have to change the hostnames for all the PTRs in the zone? If
> so, and you're doing the same kind of pattern-based hostnames you could
> simply use $GENERATE. Something like:
>
> $GENERATE 0-255 $ PTR dynamic-172-58-0-$.example.com.
>
> You can read more about $GENERATE in the ARM.
>
>
> hth,
>
> Doug
>

I did not know there were MACROs available.. as I just inheirited this
legacy system less than one month ago..
Trying to do my best since this isn't my only job.. :P

Thx for the reply..

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