Link-local IPv6 addresses in the DNS

Mark Andrews <marka@isc.org> Tue, 22 November 2011 03:30 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 E0F1311E814F for <ipv6@ietfa.amsl.com>; Mon, 21 Nov 2011 19:30:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.456
X-Spam-Level:
X-Spam-Status: No, score=-2.456 tagged_above=-999 required=5 tests=[AWL=0.143, BAYES_00=-2.599]
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 U-+IwC9ohM1G for <ipv6@ietfa.amsl.com>; Mon, 21 Nov 2011 19:30:20 -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 6820411E810C for <ipv6@ietf.org>; Mon, 21 Nov 2011 19:30: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 2267CC9422; Tue, 22 Nov 2011 03:30:06 +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 D7D97216C6B; Tue, 22 Nov 2011 03:30:05 +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 B6D1817DF522; Tue, 22 Nov 2011 14:30:03 +1100 (EST)
To: Brian E Carpenter <brian.e.carpenter@gmail.com>
From: Mark Andrews <marka@isc.org>
Subject: Link-local IPv6 addresses in the DNS
In-reply-to: Your message of "Tue, 22 Nov 2011 15:57:08 +1300." <4ECB0F84.5080802@gmail.com>
Date: Tue, 22 Nov 2011 14:30:03 +1100
Message-Id: <20111122033003.B6D1817DF522@drugs.dv.isc.org>
Cc: 6man <ipv6@ietf.org>, Tomoyuki Sahara <sahara@surt.net>, Kerry Lynn <kerlyn2001@gmail.com>
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: Tue, 22 Nov 2011 03:30:21 -0000

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.

Mark

DNS
host.example.net. SAAAA  FE80::1 link.example.net.
host.example.net. SAAAA  2001:DB8::1 .		; "." indicates global scope
host.example.net. SAAAA  ::ffff:198.51.100.0 .	; "." indicates global scope
host.example.net. AAAA  2001:DB8::1
host.example.net. A  198.51.100.1

RA LINK-NAME link.example.net
DHCP LINK-NAME link.example.net

getaddrinfo()
AI_FILTERED  filter scoped addresses which don't match a local scope name.
	     Set in AI_DEFAULT.

If you get a response to a SAAAA lookup you don't need to do a A/AAAA lookup
as it is a superset of A and AAAA.

host.example.net SAAAA :: .  indicates a machine that exist but is off net

-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: marka@isc.org