From owner-freebsd-current@FreeBSD.ORG Wed Apr 1 19:20:57 2009 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 67478106566C for ; Wed, 1 Apr 2009 19:20:57 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx22.fluidhosting.com [204.14.89.5]) by mx1.freebsd.org (Postfix) with ESMTP id 0DF9F8FC16 for ; Wed, 1 Apr 2009 19:20:56 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 19557 invoked by uid 399); 1 Apr 2009 19:20:54 -0000 Received: from localhost (HELO 192-168-15-100.nohostname) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 1 Apr 2009 19:20:54 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <49D3BCF2.9000405@FreeBSD.org> Date: Wed, 01 Apr 2009 12:13:54 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.21 (X11/20090321) MIME-Version: 1.0 To: Mel Flynn References: <49D1B261.6010406@FreeBSD.org> <200903311025.22219.mel.flynn+fbsd.current@mailing.thruhere.net> <49D27B95.7030209@FreeBSD.org> <200904010813.57167.mel.flynn+fbsd.current@mailing.thruhere.net> In-Reply-To: <200904010813.57167.mel.flynn+fbsd.current@mailing.thruhere.net> X-Enigmail-Version: 0.95.7 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: New rc.d/named features for testing: auto-forwarding and wait on boot 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: Wed, 01 Apr 2009 19:20:57 -0000 Mel Flynn wrote: > On Tuesday 31 March 2009 22:22:45 Doug Barton wrote: >> Mel Flynn wrote: >>> I think the hardcoded 127.0.0.1 should be configurable especially >>> considering prepend-domain-nameservers option for dhclient.conf(5). >> I'm not sure you understand the goal. The idea here is to use the >> local resolver first, as a forwarder. If that usage would conflict >> with something that you prepend in dhclient.conf, don't enable both >> options. > > But the local resolver is assumed to be 127.0.0.1, not for example > 192.168.1.10 or ::1. Yes. Not only is that considered "best practice," but the named.conf that comes with the system has: listen-on { 127.0.0.1; }; already. There is no good reason to disable that. Adding additional listen-on statements (or other devices) to have the name server listen on other addresses is fine of course. > I agree prepending a nameserver and autoforward are not > the best combo, I never said that, and I don't believe it. Prepending a _local_ name server with an address other than 127.0.0.1 _is_ a bad idea however. > but it can be handy in case you stop named (free up resources, > you temporarily want) to still be able to resolve (though with a delay). > Either way, you're writing 127.0.0.1 to resolv.conf, yet not setting a listen- > on in named so the two can be out of sync, It's already in the default named.conf, and should be there anyway. > And what happens if the DHCP server cannot be reached within 5 tries, but will > once it's in the background? This is actually a good argument for prepending 127.0.0.1 in dhclient.conf. > Also, rcorder shows NETWORKING before named, yet dhclient after, though with > the changes of (a)sync dhclient lately, I should probably familiarize myself > again with what exactly is done. You need to run 'rcorder -s nostart /etc/rc.d/*' to get a better idea of what's happening. The dhclient script is not run by rc, it's run by another script. hth, Doug -- This .signature sanitized for your protection