Bug 831233 - dhclient-script does not recreate resolv.conf entries on changing runlevel
Summary: dhclient-script does not recreate resolv.conf entries on changing runlevel
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: dhcp
Version: 16
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Jiri Popelka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-12 14:19 UTC by stef
Modified: 2012-06-12 14:52 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-12 14:52:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description stef 2012-06-12 14:19:10 UTC
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 

/etc/sysconfig/network-scripts/ifcfg-eth0
NM_CONTROLLED="no"
PEERDNS="yes"

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

How reproducible:

Always

Steps to Reproduce:
1.modify network config as explained above
2.change runlevel
3.
  
Actual results:

DNS information is lost on each runlevel change

Expected results:

DNS information does not change

Additional info:

Comment 1 Jiri Popelka 2012-06-12 14:33:25 UTC
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 [1] to /sbin/dhclient-script (make it executable) and let me know if the problem remains.

[1] http://pkgs.fedoraproject.org/gitweb/?p=dhcp.git;a=blob_plain;f=dhclient-script;hb=HEAD

Comment 2 stef 2012-06-12 14:52:34 UTC
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


Note You need to log in before you can comment on or make changes to this bug.