From owner-freebsd-bugs Tue May 16 12:50: 5 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 3D7F437B94E for ; Tue, 16 May 2000 12:50:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id MAA42134; Tue, 16 May 2000 12:50:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Tue, 16 May 2000 12:50:02 -0700 (PDT) Message-Id: <200005161950.MAA42134@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Brooks Davis Subject: Re: conf/18583: [PATCH] DHCP should be able to override hostname. Reply-To: Brooks Davis Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR conf/18583; it has been noted by GNATS. From: Brooks Davis To: Sheldon Hearn Cc: obrien@FreeBSD.org, FreeBSD-gnats-submit@FreeBSD.org Subject: Re: conf/18583: [PATCH] DHCP should be able to override hostname. Date: Tue, 16 May 2000 12:42:37 -0700 On Tue, May 16, 2000 at 09:28:19PM +0200, Sheldon Hearn wrote: > Hmm, not something I thought of, nor something I have a simple solution > for. :-) Garrett Wollman pointed me in the right direction. My latest hack should avoid offending people that way, though I suppose it might offend ISC. ;-) > I _do_ think that dhclient-script needs to be taught a way to prevent > the spamming of /etc/resolv.conf, but I'm pretty sure that's not going > to solve _this_ problem. :-) With my rc.conf variable lookup function this should be pretty simple. I just looked at the script again and noticed that what's in there now is quite bogus. The function for creating resolv.conf files is never used and resolv.conf files are created two slightly different ways. If the function were used all the time the simple solution would be to check for something like "dhcp_update_resolv" not being set to no before spamming the file. -- Brooks -- Any statement of the form "X is the one, true Y" is FALSE. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message