From owner-freebsd-current@FreeBSD.ORG Fri Dec 14 11:07:04 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3555316A418 for ; Fri, 14 Dec 2007 11:07:04 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from pobox.codelabs.ru (pobox.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id E552A13C455 for ; Fri, 14 Dec 2007 11:07:03 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=one; d=codelabs.ru; h=Received:Date:From:To:Cc:Message-ID:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:Sender:X-Spam-Status:Subject; b=Ehp/vFZOKXoqPTZanKca+1RuZij8Vaimb3CK8Ca+KDPZ44/PZED6YA4Y99TtoSYz934U1SelGSxVrTW5woZE2vaDPVkHFTZ6UPE0lsoUMTPumHBvZJx7NcmMspit1R15mXUWLTN+Jg/YCpZs7ZZLxlQ09XQ7rt9BiUqyhSoDRxA=; Received: from void.codelabs.ru (void.codelabs.ru [144.206.177.25]) by pobox.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1J38Nh-0007Zi-SO; Fri, 14 Dec 2007 14:07:02 +0300 Date: Fri, 14 Dec 2007 14:07:00 +0300 From: Eygene Ryabinkin To: Poul-Henning Kamp Message-ID: References: <72389.1197629858@critter.freebsd.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <72389.1197629858@critter.freebsd.dk> Sender: rea-fbsd@codelabs.ru X-Spam-Status: No, score=-3.2 required=4.0 tests=ALL_TRUSTED,AWL,BAYES_00 Cc: freebsd-current@freebsd.org Subject: Re: [RFC] Automated generation of /etc/resolv.conf from the rc.d script X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Dec 2007 11:07:04 -0000 Fri, Dec 14, 2007 at 10:57:38AM +0000, Poul-Henning Kamp wrote: > In message , Eygene Ryabinkin writes: > >> It should be possible to run a local named even when we run DHCP, > >> and it shuld be an option, to have it automatically forward to the > >> DNS servers we learn from DHCP. > > > >This can be achieved with the script /etc/dhclient-exit-hooks that > >will create the file with named 'forwarders' clause [...] > > Yes, I know that, but I would like to see it controllable from rc.conf > like the rest of our network configuration. OK, since running local DNS instance is a neat idea, I will try to draft the modifications for the dhclient-exit-hooks, as I described in the previous mail. Just now I see no other way to implement it, because dhclient is asynchronious in the general case, so I can not teach /etc/rc.d/dhclient to do the job. So I expect that /etc/dhclient-exit-hooks will be born and it will build 'forwarders' file for the named, if this will be requested by /etc/rc.conf. I still not sure how to modify named.conf: automatically or let the user make the needed modifications. I am inclined to the latter, but this can pose some troubles to the users that are not very familiar with named.conf. Any thoughts? If you have other ideas how it can be done, please share. Thanks! -- Eygene