From owner-freebsd-questions@FreeBSD.ORG Thu Nov 24 18:23:43 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 25B3B16A422 for ; Thu, 24 Nov 2005 18:23:43 +0000 (GMT) (envelope-from gerard@seibercom.net) Received: from smtp1.suscom.net (smtp1.suscom.net [64.78.119.248]) by mx1.FreeBSD.org (Postfix) with ESMTP id A701943D46 for ; Thu, 24 Nov 2005 18:22:41 +0000 (GMT) (envelope-from gerard@seibercom.net) Received: from localhost (smtp1 [127.0.0.1]) by smtp1.suscom.net (Postfix) with ESMTP id 9DE3ED8263 for ; Thu, 24 Nov 2005 13:22:23 -0500 (EST) Received: from smtp1.suscom.net ([127.0.0.1]) by localhost (smtp1 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31472-08 for ; Thu, 24 Nov 2005 13:22:17 -0500 (EST) Received: from seibercom.net (ip148.217.susc.suscom.net [216.45.217.148]) by smtp1.suscom.net (Postfix) with SMTP id EA7F8D8267 for ; Thu, 24 Nov 2005 13:22:16 -0500 (EST) Received: from [192.168.0.2] (//gerard [192.168.0.2]) by seibercom.net (8.13.4/8.13.4) with ESMTP id jAOIMGB2094192 for ; Thu, 24 Nov 2005 13:22:17 -0500 (EST) (envelope-from gerard@seibercom.net) Date: Thu, 24 Nov 2005 13:22:21 -0500 From: Gerard Seibert To: freebsd-questions@freebsd.org Sender: gerard@seibercom.net Organization: Seibercom.net In-Reply-To: <20051124180549.GA95022@catflap.slightlystrange.org> References: <20051124123434.BC6C.GERARD@seibercom.net> <20051124180549.GA95022@catflap.slightlystrange.org> X-Face: "\j?x](l|]4p?-1Bf@!wN<&p=$.}^k-HgL}cJKbQZ3r#Ar]\%U(#6}'?<3s7%(%(gxJxxcR nSNPNr*/^~StawWU9KDJ-CT0k$f#@t2^K&BS_f|?ZV/.7Q Message-Id: <20051124131944.2EBF.GERARD@seibercom.net> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Mailer: Becky! ver. 2.23 [en] X-Virus-Scanned: by amavisd-new .250 at suscom.net Subject: Re: Configuring For Cache Name Server X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Nov 2005 18:23:43 -0000 On Thursday, November 24, 2005 1:05:49 PM, Daniel Bye Subject: Re: Configuring For Cache Name Server Wrote these words of wisdom: > On Thu, Nov 24, 2005 at 12:46:27PM -0500, Gerard Seibert wrote: > > OK, then why is it that the nameserver 127.0.0.1 gets removed on every > > reboot of the system and the nameservers of my ISP are inserted. > > Actually, I never removed them, I just placed the new one ahead of them. > > There is also a search entry in the file. If I remove it, it also gets > > rewritten upon boot-up. Maybe I should mention that I am employing DHCP > > presently to obtain a lease from my ISP. Is there something I need to > > alter in order to get this to work. If I cannot be done, it is no great > > lose however. I can live with the system the way it is. > > dhclient doesn't know that you want to use a local cache, so it does > what it does - gets resolver addresses from your ISP. > > Put this in your /etc/dhclient.conf: > > interface "hme0" { <--- Change interface name accordingly... > supersede domain-name-servers 127.0.0.1; > } > > > And try again. I believe, but haven't tested it, that you can use > prepend instead of supersede is you wish to keep your ISP's resolvers in > case your cache fails - but don't quote me on that! ;-) > > As for search order, use prepend: > > interface "hme0" { > prepend domain-name "your.domain.here"; > } > > HTH > > -- > Daniel Bye ***** REPLY SEPARATOR ***** On 10/11/2005 5:29:42 PM, Gerard Replied: Thanks. That is just the sort of information that I would have thought should have been listed somewhere on the man pages for setting up a cache name server. If it was there, I never noticed it.