From owner-freebsd-questions Mon Oct 28 15:17:15 2002 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 744C137B401 for ; Mon, 28 Oct 2002 15:17:14 -0800 (PST) Received: from fed1mtao04.cox.net (fed1mtao04.cox.net [68.6.19.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F87943E42 for ; Mon, 28 Oct 2002 15:17:14 -0800 (PST) (envelope-from s.wingate@cox.net) Received: from smtp.west.cox.net ([172.18.180.52]) by fed1mtao04.cox.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with SMTP id <20021028231714.RDJ14315.fed1mtao04.cox.net@smtp.west.cox.net>; Mon, 28 Oct 2002 18:17:14 -0500 From: Steve Wingate To: Philip Hallstrom , Paulo Roberto Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Re: dhcp option to *not* overwrite /etc/resolv.conf Date: Mon, 28 Oct 2002 18:17:12 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-Id: <20021028231714.RDJ14315.fed1mtao04.cox.net@smtp.west.cox.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > I have read the man pages, searched a few forums, but I did not found a > > way to prevent dhcp to do not change my /etc/resolv.conf. I do not have > > access to the dhcp server configuration, so I need to change it on my > > client. I also tried to chmod it to only read mode, but that did not > > work out. Any tips? > > Depending what it is you want to not be overwritten you should be able to achieve the desired results throught supersede and/or prepend statements in dhcp.conf. OpenBSD supports use of a resolv.conf.tail file that also hold entries you don't want overwritten (no idea about FreeBSD). Work like you don't need the money Dance like nobody's watching Love like you've never been hurt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message