Re: resolv.conf rewritten every reboot. How to figure out who and why?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Thu, Oct 8, 2009 at 11:27 AM, Meenoo Shivdasani <meenoo@xxxxxxxxx> wrote:
> /etc/init.d/network calls /etc/sysconfig/network-scripts/ifup which
> calls /sbin/dhclient which calls /sbin/dhclient-script which
> overwrites your resolv.conf with the info it gets from the DHCP server
> on the network.


How would I find this out on my own? And it seems not to be correct.
At least, if /etc/sysconfig/network-scripts/ifup calls
/sbin/dhclient, it must use some indirection, as dhclient is not
mentioned in the script explicitly:

grep -i dhc /etc/sysconfig/network-scripts/ifup
if [ "${BOOTPROTO}" = "bootp" -o "${BOOTPROTO}" = "dhcp" ]; then


Why does it overwrite /etc/resolv.conf when the machine is not set to
use DHCP? The IP address etc. is set statically using
/usr/bin/system-config-network.

Dave
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux