From owner-freebsd-questions@FreeBSD.ORG Thu Nov 24 18:06:24 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 1590D16A41F for ; Thu, 24 Nov 2005 18:06:24 +0000 (GMT) (envelope-from danielby@slightlystrange.org) Received: from catflap.slightlystrange.org (cpc1-cmbg1-3-0-cust61.cmbg.cable.ntl.com [62.253.132.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id D1EBA43DA9 for ; Thu, 24 Nov 2005 18:05:56 +0000 (GMT) (envelope-from danielby@slightlystrange.org) Received: from danielby by catflap.slightlystrange.org with local (Exim 4.54 #0) id 1EfLTi-000P1t-2w by authid for ; Thu, 24 Nov 2005 18:05:50 +0000 Date: Thu, 24 Nov 2005 18:05:49 +0000 From: Daniel Bye To: freebsd-questions@freebsd.org Message-ID: <20051124180549.GA95022@catflap.slightlystrange.org> Mail-Followup-To: freebsd-questions@freebsd.org References: <20051124123434.BC6C.GERARD@seibercom.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Nq2Wo0NMKNjxTN9z" Content-Disposition: inline In-Reply-To: <20051124123434.BC6C.GERARD@seibercom.net> User-Agent: Mutt/1.4.2.1i X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: danielby@slightlystrange.org X-SA-Exim-Scanned: No (on catflap.slightlystrange.org); SAEximRunCond expanded to false Subject: Re: Configuring For Cache Name Server X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Bye List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Nov 2005 18:06:24 -0000 --Nq2Wo0NMKNjxTN9z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 --=20 Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ --Nq2Wo0NMKNjxTN9z Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDhgD9hvzwOpChvo8RAtufAJwKeEFNJinvm+60ZIx6BzD4toLFigCgp8rY ddgiRbwyCJKwg3RxP3tpzEM= =Yg5D -----END PGP SIGNATURE----- --Nq2Wo0NMKNjxTN9z--