Re: Changing $TTL for many zones

This is a discussion on Re: Changing $TTL for many zones within the Bind Users forums, part of the DNS and Related Forums category; Barry Margolin wrote: >In article <cemtb9$1nvg$1@sf1.isc.org>, > Kevin Darcy <kcd@daimlerchrysler....


Go Back   Usenet Forums > DNS and Related Forums > Bind Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-04-2004
Kevin Darcy
 
Posts: n/a
Default Re: Changing $TTL for many zones

Barry Margolin wrote:

>In article <cemtb9$1nvg$1@sf1.isc.org>,
> Kevin Darcy <kcd@daimlerchrysler.com> wrote:
>
>
>
>>Barry Margolin wrote:
>>
>>
>>
>>>In article <cemkbf$14n1$1@sf1.isc.org>,
>>>Kevin Darcy <kcd@daimlerchrysler.com> wrote:
>>>
>>>
>>>
>>>
>>>
>>>>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).
>>>>
>>>>
>>>>
>>>>
>>>What is this supposed to accomplish? Putting an explicit TTL on the SOA
>>>record doesn't create a default for the rest of the file; that's what
>>>$TTL is for.
>>>
>>>
>>>

>>Giving the first RR in the zone file an explicit TTL is functionally
>>equivalent to establishing a default TTL value, if none of the other
>>records have an explicit TTL.
>>
>>

>
>I've never heard of that. TTL is not automatically inherited from one
>record to the next. Any records that don't have an explicit TTL get the
>default that's specified in $TTL.
>
>If you don't have $TTL specified, the default will come from the MinTTL
>field of the SOA record, for backward compatibility with BIND versions
>that predated $TTL.
>

From doc/misc/migration:

2.1. Strict RFC1035 Interpretation of TTLs in Zone Files

BIND 9 strictly complies with the RFC1035 and RFC2308 rules regarding
omitted TTLs in zone files. Omitted TTLs are replaced by the value
specified with the $TTL directive, or by the previous explicit TTL if
there is no $TTL directive.

If there is no $TTL directive and the first RR in the file does not
have an explicit TTL field, the zone file is illegal according to
RFC1035 since the TTL of the first RR is undefined. Unfortunately,
BIND 4 and many versions of BIND 8 accept such files without warning
and use the value of the SOA MINTTL field as a default for missing TTL
values.

BIND 9.0 and 9.1 completely refused to load such files. BIND 9.2
emulates the nonstandard BIND 4/8 SOA MINTTL behavior and loads the
files anyway (provided the SOA is the first record in the file), but
will issue the warning message "no TTL specified; using SOA MINTTL
instad".



- Kevin



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:12 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0