From owner-freebsd-net@FreeBSD.ORG Thu Apr 21 14:53:59 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 8379E106568B for ; Thu, 21 Apr 2011 14:53:59 +0000 (UTC) (envelope-from fbsd@opal.com) Received: from mho-02-ewr.mailhop.org (mho-04-ewr.mailhop.org [204.13.248.74]) by mx1.freebsd.org (Postfix) with ESMTP id 4F9538FC08 for ; Thu, 21 Apr 2011 14:53:59 +0000 (UTC) Received: from pool-141-154-217-103.bos.east.verizon.net ([141.154.217.103] helo=homobox.opal.com) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1QCvGY-000HqL-Ir; Thu, 21 Apr 2011 14:53:58 +0000 Received: from opal.com (localhost [IPv6:::1]) (authenticated bits=0) by homobox.opal.com (8.14.4/8.14.4) with ESMTP id p3LErurr072424 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 21 Apr 2011 10:53:57 -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; 21 Apr 2011 10:53:56 -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: U2FsdGVkX18kKb8IiEXGKbc932Vmzf8f Date: Thu, 21 Apr 2011 10:53:56 -0400 From: "J.R. Oldroyd" To: lev@freebsd.org Message-ID: <20110421105356.51d881ca@shibato.opal.com> In-Reply-To: <969959848.20110421024515@serebryakov.spb.ru> References: <969959848.20110421024515@serebryakov.spb.ru> 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 Cc: freebsd-net@freebsd.org Subject: Re: stateless dhcp6 server for FreeBSD? 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, 21 Apr 2011 14:53:59 -0000 On Thu, 21 Apr 2011 02:45:15 +0400, Lev Serebryakov wrote: > > Hello, Freebsd-net. > > Is here any stateless dhcp6 solution for FreeBSD? > > I need only distribute IPv6 DNS server addresses to clients, but not > prefixes or address information. > DHCP is stateful. If you want stateless, you need IPv6 RDNSS router advertisements. Just over a month ago on this list, I posted patches for IPv6 stateless autoconfiguration of DNS information. There are four parts to the patch: - changes to rtadvd to send the DNS info - changes to rtsold to receive it - a new script, resolvconf(8), to manage resolv.conf updates - changes to /sbin/dhclient-script to use resolvconf(8) (so that IPv4 DHCP and IPv6 RA info can co-exist) These patches conform to RFC 6106. Since you just want to send DNS info and not prefixes, you can use these patches in rtadvd and just configure rdnss info and no prefix info. The patches are here: http://opal.com/jr/freebsd/rdnss/ I've since filed a PR (http://www.freebsd.org/cgi/query-pr.cgi?pr=156259) to have this reviewed and committed. -jr