From owner-freebsd-questions@FreeBSD.ORG Thu Apr 10 01:59:10 2003 Return-Path: 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 22C4D37B401 for ; Thu, 10 Apr 2003 01:59:10 -0700 (PDT) Received: from catflap.home.slightlystrange.org (pc1-cmbg1-4-cust43.cmbg.cable.ntl.com [62.253.133.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBDA743FA3 for ; Thu, 10 Apr 2003 01:59:08 -0700 (PDT) (envelope-from dan@slightlystrange.org) Received: from danielby by catflap.home.slightlystrange.org with local (Exim 3.36 #1) id 193Xte-0001NI-00 for freebsd-questions@freebsd.org; Thu, 10 Apr 2003 09:59:02 +0100 Date: Thu, 10 Apr 2003 09:59:02 +0100 From: Daniel Bye To: freebsd-questions@freebsd.org Message-ID: <20030410085901.GA5192@catflap.home.slightlystrange.org> Mail-Followup-To: freebsd-questions@freebsd.org References: <200304100914.43380.freebsd.nospam@mekanix.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200304100914.43380.freebsd.nospam@mekanix.dk> User-Agent: Mutt/1.4i X-Scanner: exiscan *193Xte-0001NI-00*71P.erSKZOQ* (SlightlyStrange.org, Using NOD32 http://www.nod32.com) Subject: Re: resolv.conf, dhcp and upgrade to 4.8-STABLE X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: dan@slightlystrange.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Apr 2003 08:59:10 -0000 On Thu, Apr 10, 2003 at 09:14:43AM +0200, Bjarne Wichmann Petersen wrote: > Hi! > > I've just upgrade from 4.8-PRE to 4.8-STABLE and prior to this I could log on > to the network through dhcp and resolv.conf would be untouched, which I need > it to be since I run a dns-cache. So "nameserver 127.0.0.1" is all that is > needed in resolv.conf. > > But since my upgrade yesterday, resolv.conf get's overwriten with my ISP's > dns-servers. What have changed and how do I get it back to the old behavior? The upgrade probably replaced your /etc/dhclient.conf. All you need to do is add a "prepend" statement, like this: interface "xl0" { <-- change xl0 for the name of your DHCP interface! prepend-domain-nameservers 127.0.0.1; [other directives...] } This works well for me. You could also use "supersede" to make dhclient ignore the values returned from the server. However, in the event your cache fails, you will be left without any name resolution service, which is why I tend to favour prepend. HTH Dan > > Bjarne > -- > Homepage: http://www.mekanix.dk > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \