Re: [dhcwg] DDNS-DHCP [6]: Relationship between DNS TTL and DHCP lease length

Paul Vixie <paul@vix.com> Mon, 23 June 2003 17:47 UTC

Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged)) by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA00841 for <dhcwg-archive@odin.ietf.org>; Mon, 23 Jun 2003 13:47:43 -0400 (EDT)
Received: (from exim@localhost) by www1.ietf.org (8.11.6/8.11.6) id h5NHlFk17740 for dhcwg-archive@odin.ietf.org; Mon, 23 Jun 2003 13:47:15 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 19UVPP-0004bz-3y for dhcwg-web-archive@optimus.ietf.org; Mon, 23 Jun 2003 13:47:15 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA00763 for <dhcwg-web-archive@ietf.org>; Mon, 23 Jun 2003 13:47:12 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1]) by ietf-mx with esmtp (Exim 4.12) id 19UVPM-0004ER-00 for dhcwg-web-archive@ietf.org; Mon, 23 Jun 2003 13:47:12 -0400
Received: from ietf.org ([132.151.1.19] helo=optimus.ietf.org) by ietf-mx with esmtp (Exim 4.12) id 19UVPG-0004EM-00 for dhcwg-web-archive@ietf.org; Mon, 23 Jun 2003 13:47:06 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 19UVPB-0004ZR-Nz; Mon, 23 Jun 2003 13:47:01 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 19UVJw-0004R5-BM for dhcwg@optimus.ietf.org; Mon, 23 Jun 2003 13:41:36 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA00355 for <dhcwg@ietf.org>; Mon, 23 Jun 2003 13:41:18 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1]) by ietf-mx with esmtp (Exim 4.12) id 19UVJf-0004Bu-00 for dhcwg@ietf.org; Mon, 23 Jun 2003 13:41:19 -0400
Received: from sa.vix.com ([204.152.187.1]) by ietf-mx with esmtp (Exim 4.12) id 19UVJU-0004Bl-00 for dhcwg@ietf.org; Mon, 23 Jun 2003 13:41:08 -0400
Received: from sa.vix.com (localhost [127.0.0.1]) by sa.vix.com (Postfix) with ESMTP id B97901396A; Mon, 23 Jun 2003 17:40:16 +0000 (GMT) (envelope-from vixie@sa.vix.com)
From: Paul Vixie <paul@vix.com>
To: namedroppers@ops.ietf.org, dhcwg@ietf.org
Subject: Re: [dhcwg] DDNS-DHCP [6]: Relationship between DNS TTL and DHCP lease length
In-Reply-To: Message from Bruce Campbell <bc-namedroppers@vicious.dropbear.id.au> of "Mon, 23 Jun 2003 16:14:19 +0200." <Pine.LNX.4.44.0306231420410.611-100000@x45.ripe.net>
X-Mailer: MH-E 7.3; nmh 1.0.4; GNU Emacs 21.3.1
Date: Mon, 23 Jun 2003 17:40:16 +0000
Message-Id: <20030623174016.B97901396A@sa.vix.com>
Sender: dhcwg-admin@ietf.org
Errors-To: dhcwg-admin@ietf.org
X-BeenThere: dhcwg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=unsubscribe>
List-Id: <dhcwg.ietf.org>
List-Post: <mailto:dhcwg@ietf.org>
List-Help: <mailto:dhcwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=subscribe>

[robert campbell]
> What do clients see from tinydns?  Eg, for a record of 'dying.example.com'
> which should expire at T+1500, would it be:
> 
>   Client A requesting 'dying.example.com' at time T receives:
> 	dying.example.com 1500  IN A 192.168.1.2
> 
>   Client B requesting 'dying.example.com' at time T+100 receives:
> 	dying.example.com 1400	IN A 192.168.1.2
> 
> ?
> 
> So, Client A and Client B have _nearly_ the same RR set, just with
> different TTLs.

no.  ttl does not affect rrset identity.  per [rfc2136 1.1.1] et al.

> The end effect is that both Client A and Client B will drop the record
> from their cache at the appropriate time.  This is good, right?

yes.

> So, the next question is, since Client A and Client B received different
> (authoritative) responses, does that mean that there were different
> versions of the zone 'example.com' at time T and T+100 ?

no.  see above.

> If yes, there were different versions of the zone at T and T+100, then
> the SOA serial needs to be updated, with the consequent flurry of AXFR
> requests from the 'example.com' slaves when they noticed the SOA
> having changed.

no.  any authoritative server could clamp its ttl's for local policy reasons
without affecting zone identity.  they can't be made longer but they could
absolutely be made shorter without invalidating the zone soa:content mapping.

> Section 3.4.2 of Vixies 1996 draft (related to implementation of
> time-to-die) has the wording:
> 
>    3.4.2 - TTL Half Life
> 
>    Each time an RR's expiry reaches half of its previous value, that RR's
>    TTL will be reduced to half of its previous value, until the TTL reaches
>    a value less than or equal to sixty (60), i.e., one minute of real time,
> 
>    <snip>
> 
>    Whenever the TTL is automatically reduced by this process, the zone will
>    be considered ``changed'' for the purpose of automatic SOA SERIAL
>    increment (see [UPDATE 3.6]) and real time zone slave notification (see
>    [NOTIFY]).
> 
> You could probably do wording such that the only time an SOA serial change
> occurs (due to TTL/TTD behaviour) is when an SOA request comes in (so the
> version of the zone on your non-time-to-die-internal-magic slave is
> correct), but you've still got the problem of differing clients getting
> differing versions of RRs ...

they aren't differing versions of rr's.  ttl is not considered in rr
comparisons.

> ... in the zone without SOA serial change, which is not a good precedent.

see also [rfc2136 3.6].

_______________________________________________
dhcwg mailing list
dhcwg@ietf.org
https://www1.ietf.org/mailman/listinfo/dhcwg