Re: Link-local IPv6 addresses in the DNS

Mark Andrews <marka@isc.org> Wed, 23 November 2011 01:48 UTC

Return-Path: <marka@isc.org>
X-Original-To: ipv6@ietfa.amsl.com
Delivered-To: ipv6@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 67D3521F84F8 for <ipv6@ietfa.amsl.com>; Tue, 22 Nov 2011 17:48:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.458
X-Spam-Level:
X-Spam-Status: No, score=-3.458 tagged_above=-999 required=5 tests=[AWL=1.141, BAYES_00=-2.599, GB_I_LETTER=-2]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p+0f0dTzmTSh for <ipv6@ietfa.amsl.com>; Tue, 22 Nov 2011 17:48:21 -0800 (PST)
Received: from mx.pao1.isc.org (mx.pao1.isc.org [IPv6:2001:4f8:0:2::2b]) by ietfa.amsl.com (Postfix) with ESMTP id DAE9821F84DD for <ipv6@ietf.org>; Tue, 22 Nov 2011 17:48:20 -0800 (PST)
Received: from bikeshed.isc.org (bikeshed.isc.org [IPv6:2001:4f8:3:d::19]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "bikeshed.isc.org", Issuer "ISC CA" (verified OK)) by mx.pao1.isc.org (Postfix) with ESMTPS id EF75BC9473; Wed, 23 Nov 2011 01:48:07 +0000 (UTC) (envelope-from marka@isc.org)
Received: from drugs.dv.isc.org (unknown [IPv6:2001:470:1f00:820:6233:4bff:fe01:7585]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bikeshed.isc.org (Postfix) with ESMTPSA id 88597216C6A; Wed, 23 Nov 2011 01:48:07 +0000 (UTC) (envelope-from marka@isc.org)
Received: from drugs.dv.isc.org (localhost [127.0.0.1]) by drugs.dv.isc.org (Postfix) with ESMTP id 444C617E5E83; Wed, 23 Nov 2011 12:48:03 +1100 (EST)
To: Brian E Carpenter <brian.e.carpenter@gmail.com>
From: Mark Andrews <marka@isc.org>
References: <m1RStJG-0001jCC@stereo.hq.phicoh.net> <4ECC0BAB.4040401@gmail.com>
Subject: Re: Link-local IPv6 addresses in the DNS
In-reply-to: Your message of "Wed, 23 Nov 2011 09:52:59 +1300." <4ECC0BAB.4040401@gmail.com>
Date: Wed, 23 Nov 2011 12:48:02 +1100
Message-Id: <20111123014803.444C617E5E83@drugs.dv.isc.org>
Cc: 6man <ipv6@ietf.org>, Kerry Lynn <kerlyn2001@gmail.com>, Philip Homburg <pch-6man-1a@u-1.phicoh.com>, Tomoyuki Sahara <sahara@surt.net>
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "IPv6 Maintenance Working Group \(6man\)" <ipv6.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ipv6>, <mailto:ipv6-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ipv6>
List-Post: <mailto:ipv6@ietf.org>
List-Help: <mailto:ipv6-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ipv6>, <mailto:ipv6-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 23 Nov 2011 01:48:21 -0000

In message <4ECC0BAB.4040401@gmail.com>, Brian E Carpenter writes:
> On 2011-11-23 05:34, Philip Homburg wrote:
> > In your letter dated Tue, 22 Nov 2011 14:30:03 +1100 you wrote:
> >> On a related issue to link locals in URI's, we don't currently have
> >> a good method of supporting link locals in the DNS.  Sure we can
> >> add them as AAAA records but they are essentially useless as the
> >> scope information is lost.  People keep saying use LL for disconnected
> >> but it just doesn't work without more support.
> 
> Other people keep saying "use ULA for disconnected". The fact
> that you can put ULA into (er, local) DNS without any fancy
> stuff is a distinct advantage.
> 
> IMHO link-local should be used only for bootstrapping a host and
> for diagnostic purposes. I guess I could statically configure a
> printer on fe00::a%1 if I really had no choice.
> 
>    Brian

ULA has similar scope issues.  It's just that the OS don't knock
you over when you do bind(), connect(), sendto() and sendmsg()
without scope information.  You can avoid using non local ULA with
the same filtering mechanisms.

> > For disconnected operation, why not have getaddrinfo fill in the scope?
> > Just set it to the interface over which the DNS reply arrived. 
> > 
> > I have to admit that this may become a bit tricky if the DNS resolver is lo
> cal
> > or if interface information is lost in some other way.
> > 
> > 
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: marka@isc.org