Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jan 2002 10:40:01 -0800 (PST)
From:      Ceri <setantae@submonkey.net>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: misc/34455: [PATCH] /sbin/dhclient-script overwrites /etc/resolv.conf without any relevant information
Message-ID:  <200201301840.g0UIe1M47640@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/34455; it has been noted by GNATS.

From: Ceri <setantae@submonkey.net>
To: "brian j. peterson" <rbw@myplace.org>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201301840.g0UIe1M47640>