From owner-freebsd-questions Fri Dec 28 9:59:27 2001 Delivered-To: freebsd-questions@freebsd.org Received: from shumai.marcuscom.com (rdu57-28-046.nc.rr.com [66.57.28.46]) by hub.freebsd.org (Postfix) with ESMTP id 653B737B422 for ; Fri, 28 Dec 2001 09:59:24 -0800 (PST) Received: from localhost (marcus@localhost) by shumai.marcuscom.com (8.11.6/8.11.6) with ESMTP id fBSHxeE28380; Fri, 28 Dec 2001 12:59:40 -0500 (EST) (envelope-from marcus@marcuscom.com) X-Authentication-Warning: shumai.marcuscom.com: marcus owned process doing -bs Date: Fri, 28 Dec 2001 12:59:40 -0500 (EST) From: Joe Clarke To: Kenneth W Cochran Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Howto - dhclient not generate/update resolv.conf In-Reply-To: <200112281755.MAA6061942@shell.TheWorld.com> Message-ID: <20011228125815.B27720-100000@shumai.marcuscom.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Fri, 28 Dec 2001, Kenneth W Cochran wrote: > Hello... > > What is a/the correct way to get DHCP (dhclient) to *not* > generate/update /etc/resolv.conf when it starts/renews? > > OS is FreeBSD RELENG_4 as of 2001/12/27 (4.5-PRERELEASE). > > What I want to do: Get my ip-address, etc, via DHCP/dhclient, > but still be able to run my own (caching-only, for example) > nameserver. Based on manpage(s) (e.g. resolv.conf(5)) it seems > quite appropriate to *not* have resolv.conf in this scenario. (?) I let dhclient play with resolv.conf, but I tell it to prepend my caching server address. From /etc/dhclient.conf: interface "ed0" { supersede domain-name "marcuscom.com"; prepend domain-name-servers 127.0.0.1; } man dhclient.conf(5) gives a good example of a "complex" dhclient.conf. Joe > > Citable source (aka, FM to RT :) much appreciated. So far, I > haven't found quite what I'm looking for in the manpages, > Handbook, books, etc. > > Thanks, > > -kc > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message