Re: [dhcwg] DDNS-DHCP [6]: Relationship between DNS TTL and DHCP lease length
Ralph Droms <rdroms@cisco.com> Wed, 18 June 2003 14:10 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 KAA08706 for <dhcwg-archive@odin.ietf.org>; Wed, 18 Jun 2003 10:10:54 -0400 (EDT)
Received: (from exim@localhost) by www1.ietf.org (8.11.6/8.11.6) id h5IEARN11621 for dhcwg-archive@odin.ietf.org; Wed, 18 Jun 2003 10:10:27 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 19SdKK-0001eY-0x for dhcwg-web-archive@optimus.ietf.org; Wed, 18 Jun 2003 09:50:16 -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 JAA06909 for <dhcwg-web-archive@ietf.org>; Wed, 18 Jun 2003 09:50:13 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1]) by ietf-mx with esmtp (Exim 4.12) id 19SdI3-0004oU-00 for dhcwg-web-archive@ietf.org; Wed, 18 Jun 2003 09:47:55 -0400
Received: from ietf.org ([132.151.1.19] helo=optimus.ietf.org) by ietf-mx with esmtp (Exim 4.12) id 19SdI2-0004oR-00 for dhcwg-web-archive@ietf.org; Wed, 18 Jun 2003 09:47:54 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 19Sd9R-0001Fp-AB; Wed, 18 Jun 2003 09:39:01 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 19SclY-00008R-5p for dhcwg@optimus.ietf.org; Wed, 18 Jun 2003 09:14:20 -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 JAA04859 for <dhcwg@ietf.org>; Wed, 18 Jun 2003 09:14:17 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1]) by ietf-mx with esmtp (Exim 4.12) id 19ScjH-0004BX-00 for dhcwg@ietf.org; Wed, 18 Jun 2003 09:11:59 -0400
Received: from rtp-core-1.cisco.com ([64.102.124.12]) by ietf-mx with esmtp (Exim 4.12) id 19ScjG-0004AY-00 for dhcwg@ietf.org; Wed, 18 Jun 2003 09:11:58 -0400
Received: from cisco.com (funnel.cisco.com [161.44.168.79]) by rtp-core-1.cisco.com (8.12.9/8.12.6) with ESMTP id h5IDDjwH016289; Wed, 18 Jun 2003 09:13:46 -0400 (EDT)
Received: from rdroms-w2k.cisco.com (rtp-vpn2-244.cisco.com [10.82.240.244]) by cisco.com (8.8.5-Cisco.1/8.8.8) with ESMTP id JAA03051; Wed, 18 Jun 2003 09:13:44 -0400 (EDT)
Message-Id: <4.3.2.7.2.20030618091029.00b76578@funnel.cisco.com>
X-Sender: rdroms@funnel.cisco.com
X-Mailer: QUALCOMM Windows Eudora Version 4.3.2
Date: Wed, 18 Jun 2003 09:12:03 -0400
To: dhcwg@ietf.org, namedroppers@ops.ietf.org
From: Ralph Droms <rdroms@cisco.com>
Subject: Re: [dhcwg] DDNS-DHCP [6]: Relationship between DNS TTL and DHCP lease length
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
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>
I originally posed the issue:
The RR TTLs need careful attention so that it never
exceeds the expiration time of the lease on the
associated address.
Ed Lewis has suggested an alternative wording (based on his
e-mail, included below):
The RR TTLs need careful attention so that cached DNS
information is never in conflict with the current
assignment of an IP address to a host.
That is, the important problem to avoid is cached DNS
information about an address that has been assigned
to a different host.
Based on Ed's take on the problem, an alternative solution
to the TTL problem is to:
* the DHCP server adds an RR for host H with TTL set
to some fixed value t
* the DHCP server removes the RR when the lease on the
address assigned to H expires at time T
* the DHCP server does not make the address previously
assigned to H available for reassignment until T+t
Another observation - is it possible that the issue of
stale cached DNS information has never been an issue
in practice because DNS information installed by a DHCP
server is rarely used, so that stale DNS information
is insignificant? Put another way, do we have any
experience with DDNS updates for a host that has obtained
its IP address through DHCP and that is the target of
frequent DNS queries; for example, a host running a
web server whose address is found through a DNS query?
If the RRs installed by the DHCP server are rarely queried,
another alternative would be to simply set the TTL to 0,
or to set the TTL initially to t, and then t seconds
before the expiration of the lease on the address, set
the TTL to 0.
It seems that the guidance currently given in
draft-ietf-dhc-ddns-resolution-05 will lead to a period
of time equal to 1/3 the original lease time during
which cached DNS data may associate a DNS name with
an IP address that has been reassigned to a different
host. This potential problem may not have been realized
in practice because the DNS information about a host
updated by a DHCP server is rarely queried.
- Ralph
At 08:19 PM 6/11/2003 -0400, Edward Lewis wrote:
>Let's face it, DNS doesn't handle change well. And, worse yet, neither does security. That and DHCP , the reason we are here, loves change.
>
>One problem is that we are once again (to DNS'ers) mixing relative time (TTLs) and absolute time (a lease is from fixed time A to fixed time B). (I realize a lease can be extended, renewed, etc., but at any moment, it's a fixed span.) The same problem exists in DNSSEC's signature records and their validity spans. The concrete dilemma is - if I set the TTL to be (B-A)/3, as suggested, then the PTR/A[AAA] record will have the same value whether t=A or t=B.
>
>The best thing would be for a merge of the DNS server and DHCP server so that the TTL is always set to (B-NOW)-fudge, which is what we really want. 'Course, if we also wanted DNSSEC, we'd have to sign on the fly (which is why I mentioned security above).
>
>I'd suggest that if the DHCP server has a period of time in which it will not reassign/reallocate an address after a lease has been allowed to elapse, that this is the period to use for the TTL. It represents the amount of time that erroneous information in a DNS cache can exist and not be of harm to an active node.
>
>The DNS data is just as "dirty" but if the DHCP hasn't given the address to another node, there's a win in there somewhere.
>
>At 15:48 -0400 6/6/03, Mark Stapp wrote:
>>I've replied to Patrick; I'm not quite sure what more to do with issue [6].
>>
>>The draft recommends using a ttl that's a fraction of the lease time, and recommends removing rrs promptly when the lease expires. There have been at least a couple of exchanges about this over the years, and the conclusion has always been that it's not possible to come up with a single set of values that are appropriate in every situation. Also, it's not possible to compel updaters to perform additional updates to 'back down' rrs' ttls as a lease approaches its expiration - that'll kill the dns server. As I noted in the other email I sent, the recommendations that are in the draft are the most up-to-date ones that I've been offered.
>>
>>We do have quite a bit of deployment experience with dhcp updates to dns, and this has not been an issue, as far as I can recall. I also don't recall any email to the wg indicating that this has been an issue in anyone else's experience. If someone has followed these recommendations and has found problems with them, then by all means let's come up with better recommendations.
>>
>>-- Mark
>>
>>At 03:11 PM 6/6/2003 -0400, Ralph Droms wrote:
>>>DDNS-DHCP issue:
>>>
>>> The RR TTLs need careful attention so that it never exceeds the
>>> expiration time of the lease on the associated address.
>>>
>>>This issue was anticipated by Patrick Cosmo:
>>>
>>>On Fri, 6 Jun 2003, Cosmo, Patrick wrote:
>>>
>>> > I have found some minor issues with the
>>> > <draft-ietf-dhc-ddns-resolution-05.txt>, I apologize if they have already
>>> > been brought up.
>>> >
>>> > In particular, this statement in section 5. (DNS RR TTLs) on page 5:
>>> >
>>> > "The RR TTL on a DNS record added for with a DHCP lease SHOULD NOT exceed
>>> > 1/3 of the lease time, and SHOULD be at least 10 minutes."
>>> >
>>> > 1. This sentence has some bad grammar ("for with" : ... record added for
>>> > with a DHCP lease ...).
>>> >
>>> > 2. The statement is contradictory if the lease time is less than 30 minutes.
>>> > When the lease time is less than 30 minutes, which suggestion takes
>>> > precendence? : min. 10 minutes, or max or 1/3 lease time?
>>> >
>>> > 3. The section seems intended to suggest a reasonable TTL for these records,
>>> > but doesn't seem to pull through or suggest much of anything (IMHO) other
>>> > than "it should be a function of lease time, and it should be configurable".
>>> >
>>> >
>>> > Patrick Cosmo
>>> >
>>> > Senior Product Engineer
>>> > Incognito Software Inc
>>> > Vancouver: (604) 688-4332 ext: 254
>>> > Toll-Free: 1-800-877-1856
>>> > http://www.incognito.com
>>> >
>>> >
>>> >
>>> > -----Original Message-----
>>> > From: Ralph Droms [mailto:rdroms@cisco.com]
>>> > Sent: Thursday, June 05, 2003 7:36 PM
>>> > To: dhcwg@ietf.org; namedroppers@ops.ietf.org
>>> > Subject: [dhcwg] Issues in DDNS-DHCP interaction drafts
>>> >
>>> >
>>> > The following drafts have passed WG last call:
>>> >
>>> > [1] A DNS RR for Encoding DHCP Information (DHCID RR)
>>> > <draft-ietf-dnsext-dhcid-rr-06.txt>
>>> >
>>> > [2] The DHCP Client FQDN Option
>>> > <draft-ietf-dhc-fqdn-option-05.txt>
>>> >
>>> > [3] Resolution of DNS Name Conflicts Among DHCP Clients
>>> > <draft-ietf-dhc-ddns-resolution-05.txt>
>>> >
>>> > Several issues regarding these drafts have been identified
>>> > during the AD review prior to IESG review for Proposed
>>> > Standard status. I will initiate discussion threads on
>>> > each of these issues later today with e-mail to both
>>> > the dhcwg and namedroppers mailing lists. Please respond
>>> > just to the dhcwg mailing list to avoid duplicate postings...
>>> >
>>> > - Ralph
>>> >
>>> > _______________________________________________
>>> > dhcwg mailing list
>>> > dhcwg@ietf.org
>>> > https://www1.ietf.org/mailman/listinfo/dhcwg
>>> >
>>>_______________________________________________
>>>dhcwg mailing list
>>>dhcwg@ietf.org
>>>https://www1.ietf.org/mailman/listinfo/dhcwg
>>
>>
>>--
>>to unsubscribe send a message to namedroppers-request@ops.ietf.org with
>>the word 'unsubscribe' in a single line as the message text body.
>>archive: <http://ops.ietf.org/lists/namedroppers/>
>
>--
>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>Edward Lewis +1-703-227-9854
>ARIN Research Engineer
>
>Okay, okay, the previous sig wasn't all that good...
_______________________________________________
dhcwg mailing list
dhcwg@ietf.org
https://www1.ietf.org/mailman/listinfo/dhcwg
- Re: [dhcwg] DDNS-DHCP [6]: Relationship between D… Ralph Droms
- Re: [dhcwg] DDNS-DHCP [6]: Relationship between D… Robert Elz
- Re: [dhcwg] DDNS-DHCP [6]: Relationship between D… Ted Lemon
- Re: [dhcwg] DDNS-DHCP [6]: Relationship between D… Ralph Droms
- Re: [dhcwg] DDNS-DHCP [6]: Relationship between D… Robert Elz
- Re: [dhcwg] DDNS-DHCP [6]: Relationship between D… Mark Stapp
- Re: [dhcwg] DDNS-DHCP [6]: Relationship between D… Ted Lemon
- Re: [dhcwg] DDNS-DHCP [6]: Relationship between D… Edward Lewis
- Re: [dhcwg] DDNS-DHCP [6]: Relationship between D… D. J. Bernstein
- Re: [dhcwg] DDNS-DHCP [6]: Relationship between D… Michael Richardson
- Re: [dhcwg] DDNS-DHCP [6]: Relationship between D… Robert Elz
- Re: [dhcwg] DDNS-DHCP [6]: Relationship between D… D. J. Bernstein
- Re: [dhcwg] DDNS-DHCP [6]: Relationship between D… Ted Lemon
- Re: [dhcwg] DDNS-DHCP [6]: Relationship between D… Bruce Campbell
- Re: [dhcwg] DDNS-DHCP [6]: Relationship between D… D. J. Bernstein
- Re: [dhcwg] DDNS-DHCP [6]: Relationship between D… Paul Vixie
- Re: [dhcwg] DDNS-DHCP [6]: Relationship between D… Paul Vixie
- Re: [dhcwg] DDNS-DHCP [6]: Relationship between D… Bruce Campbell
- Re: [dhcwg] DDNS-DHCP [6]: Relationship between D… D. J. Bernstein