Red Hat Bugzilla – Bug 537615
dhclient rewrites /etc/resolv.conf if PEERDNS=no in ifcfg-eth0
Last modified: 2010-01-27 10:22:30 EST
Description of problem:
If set PEERDNS=no in /etc/sysconfig/network-scripts/ifcfg-eth0 then dhclient writes in /etc/resolv.conf nameserver obtained from DHCP server.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Setup eth0 and DNS with /usr/sbin/setup
2. Set PEERDNS=no, ONBOOT=yes in /etc/sysconfig/network-scripts/ifcfg-eth0
3. service network restart
dhclient rewrites /etc/resolv.conf created with /usr/sbin/setup
dhclient should not rewrite /etc/resolv.conf when set PEERDNS=no
dhcp-4_1_0p1-5_fc11 built for F12 not rewrites resolv.conf.
I have been trying this on two machines but I'm not able to reproduce it.
Can you describe what exactly did you set in /usr/sbin/setup (system-config-network-tui) and what was the content of /etc/resolv.conf before and after restarting the network service ?
At one installation Fedora 12 this bug can be reproduced.
But when I made new installation it can't be reproduced there.
I am trying to understand what changes in system configuration can lead to this bug.