Red Hat Bugzilla – Bug 831233
dhclient-script does not recreate resolv.conf entries on changing runlevel
Last modified: 2012-06-12 10:52:34 EDT
Description of problem:
To avoid non-root or non-sudoer users to modify the network parameters or disable the eth0 interface I configured the following in
then I issued the command
chkconfig network on
doing this I have the eth0 interface being configured by dhcp and the DNS informations written in /etc/resolv.conf at boot time.
So far so good, except when I issue a command to change runlevel (ex: init 3 or init 5), then the IP address is good but no more DNS information in /etc/resolv.conf.
I have to reissue manualy a /etc/init.d/network restart
A chkconfig gives me the following (in french) :
network 0:arrêt 1:arrêt 2:marche 3:marche 4:marche 5:marche 6:arrêt
Version-Release number of selected component (if applicable):
Linux Fedora Core 16
Steps to Reproduce:
1.modify network config as explained above
DNS information is lost on each runlevel change
DNS information does not change
Could be a similar problem as bug #824053.
I did some improvements in dhclient-script in Fedora-17 that could solve this problem.
Could you try to copy the dhclient-script from F-17  to /sbin/dhclient-script (make it executable) and let me know if the problem remains.
even better than this, it seems that problem was fixed by a previous update, my FC16 test box was not up-to-date, I made a new test after issuing a 'yum-y upgrade' and a reboot and the problem is gone.
Sorry about this, it appears it was already fixed