Changing $TTL for many zones

Kevin Darcy kcd at daimlerchrysler.com
Mon Aug 2 23:51:18 UTC 2004


phn at icke-reklam.ipsec.nu wrote:

>Josh Harding <jharding at brave.cs.uml.edu> wrote:
>  
>
>>I was wondering if it's possible to use an include with bind9 to set the 
>>time to live. This would allow me to easily change the ttl when we make 
>>changes in the future. 
>>    
>>
>>The syntax I was contemplating would look like this
>>in db.somedomain:
>> $include db.ttl.inc
>>    
>>
>
>  
>
>>and in db.ttl.inc:
>>$TTL 86400      ;to be changed at my convenience
>>    
>>
>
>  
>
>>Would this work?
>>    
>>
>
>Yes. But why ? You still have to edit at least the SOA record to increase 
>serial nr.
>
Exactly. I would go further and suggest that, since the SOA needs to be 
changed anyway, just give an explicit TTL to the SOA RR, and thus 
dispense with the $TTL directive completely (my assumption here is that 
the SOA RR is the first RR in the zone file).

                                                                         
                                                   - Kevin



More information about the bind-users mailing list