From owner-freebsd-net@FreeBSD.ORG Thu Mar 17 17:45:17 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B139E106564A for ; Thu, 17 Mar 2011 17:45:17 +0000 (UTC) (envelope-from fbsd@opal.com) Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by mx1.freebsd.org (Postfix) with ESMTP id 8621E8FC13 for ; Thu, 17 Mar 2011 17:45:17 +0000 (UTC) Received: from pool-141-154-217-103.bos.east.verizon.net ([141.154.217.103] helo=homobox.opal.com) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1Q0Gx9-000OlH-0V for freebsd-net@freebsd.org; Thu, 17 Mar 2011 17:25:39 +0000 Received: from opal.com (localhost [IPv6:::1]) (authenticated bits=0) by homobox.opal.com (8.14.4/8.14.4) with ESMTP id p2HHjFDI023032 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 17 Mar 2011 13:45:15 -0400 (EDT) (envelope-from fbsd@opal.com) Received: from shibato.opal.com ([2001:470:8cb8:3:221:63ff:fe5a:c9a7] helo=shibato.opal.com) with IPv6:587 by opal.com; 17 Mar 2011 13:45:15 -0400 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 141.154.217.103 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19peWLVRHK1ayYVykFnhyvt Date: Thu, 17 Mar 2011 13:45:14 -0400 From: "J.R. Oldroyd" To: freebsd-net@freebsd.org Message-ID: <20110317134514.5f9d52de@shibato.opal.com> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; amd64-portbld-freebsd8.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: CFT: IPv6 DNS autoconfiguration (RFC6106 RDNSS and DNSSL) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2011 17:45:17 -0000 Folks, I have implemented IPv6 DNS autoconfiguration using the method described in RFC6106 which describes RDNSS and DNSSL options on ICMPv6 router advertisements. This implementation involves: - updates to rtadvd to send RDDNS and DNSSL options - updates to rtsold to receive these options Then, to allow existing dhclient and the new rtsold to update the /etc/resolv.conf file together, I have also created a new command: - /sbin/resolvconf - a script to manage resolv.conf updates and: - /sbin/dhclient-script patches to use /sbin/resolvconf Use of resolvconf to update /etc/resolv.conf allows simultaneous use of dhclient for IPv4 DHCP and rtsold for IPv6 SLAAC. At the moment, the diffs and new scripts are on this web page: http://opal.com/jr/freebsd/rdnss/ You'll have to grab the diffs and new scripts and apply and install by hand. In this work, I referenced an initial implementation of this for OpenBSD (and sent feedback to that developer) as well as other work such as the dns/openresolv port and MC's radns client. The web page explains why I developed alternatives. The OpenBSD implementation of the RDNSS and DNSSL options in rtadvd has some differences in rtadvd.conf parsing; I may add similar functionality to this version soon. See the web page for details. Feel free to give it all a try and send feedback. -jr