Subject: Stopping dhclient does not restore /etc/resolv.conf
To: None <netbsd-help@netbsd.org>
From: =?iso-8859-1?q?Gr=E9goire=20Sutre?= <sutre@labri.fr>
List: netbsd-help
Date: 10/28/2003 12:01:54
Hi,
I expected that stopping dhclient would restore the saved /etc/resolv.con=
f=20
(named /etc/resolv.conf.save), however this is not the case on my NetBSD=20
1.6.1_STABLE (i386) box.
It seems that /sbin/dhclient-script is designed to restore /etc/resolv.co=
nf,=20
when called with $reason =3D STOP.
However, when I stop dhclient (with /etc/rc.d/dhclient stop), dhclient-sc=
ript
is not called and hence can not do its job.
Did I miss something?
Or should I modify /etc/rc.d/dhclient so that dhclient-script gets called=
=20
with the right environment variables when stopping the dhclient service?
Thanks for your help,
Gregoire.