From owner-freebsd-bugs Wed Jan 30 10:40: 5 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 9C98037B400 for ; Wed, 30 Jan 2002 10:40:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0UIe1M47640; Wed, 30 Jan 2002 10:40:01 -0800 (PST) (envelope-from gnats) Date: Wed, 30 Jan 2002 10:40:01 -0800 (PST) Message-Id: <200201301840.g0UIe1M47640@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Ceri Subject: Re: misc/34455: [PATCH] /sbin/dhclient-script overwrites /etc/resolv.conf without any relevant information Reply-To: Ceri Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR misc/34455; it has been noted by GNATS. From: Ceri To: "brian j. peterson" Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: misc/34455: [PATCH] /sbin/dhclient-script overwrites /etc/resolv.conf without any relevant information Date: Wed, 30 Jan 2002 18:28:07 +0000 On Wed, Jan 30, 2002 at 10:12:04AM -0700, brian j. peterson wrote: > > >How-To-Repeat: > 1) define a custom /etc/resolv.conf > 2) start /sbin/dhclient on an interface configured without any > 'domain-name' or 'domain-name-servers' options defined in any > 'require' or 'request' statements. > 3) observe that /etc/resolv.conf has been overwritten Strikes me as pilot error to be honest. If the DCHP server doesn't provide nameservers, and you're not overriding them, then you'll end up with nothing there. If you wish to insert some information into /etc/resolv.conf, that's what the supersede statement in dhclient.conf is for, viz. # cat /etc/dhclient.conf interface "ed0" { supersede domain-name "private.submonkey.net"; prepend domain-name-servers 192.168.10.1; } -- Ceri To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message