Subject: bin/4973: dhclient nukes resolv.conf
To: None <gnats-bugs@gnats.netbsd.org>
From: Hubert Feyrer <feyrer@jabberwocky.fh-regensburg.de>
List: netbsd-bugs
Date: 02/11/1998 09:07:54
>Number: 4973
>Category: bin
>Synopsis: dhclient nukes resolv.conf
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Feb 11 00:05:00 1998
>Last-Modified:
>Originator: Hubert Feyrer
>Organization:
Hubert Feyrer <hubertf@channel.regensburg.org>
>Release: 1.3/i386
>Environment:
System: NetBSD jabberwocky 1.3 NetBSD 1.3 (JABBERWOCKY) #1: Mon Jan 12 08:30:12 MET 1998 feyrer@jabberwocky:/usr/src/sys/arch/i386/compile/JABBERWOCKY i386
>Description:
When running dhclient, it overwrites /etc/resolv.conf without
backing it up somewhere. This can be a bit annoying when one
still needs that file for later use. :)
>How-To-Repeat:
Get some DHCP server, touch /etc/dhclient.conf, boot to
single user mode, "dhclient ep0" (in my case), then look at
/etc/resolv.conf.
>Fix:
Backup /etc/resolv.conf (only if a backup doesn't already exist,
so it doesn't get overwritten by a dhclient-generated one).
>Audit-Trail:
>Unformatted: