Quote:
Originally Posted by c0mputerking
I am running redhat enterprise 5 (CENTOS) and am having problems getting settings in the resolv.conf to stick every reboot the change back i added a file called /etc/dhclient.conf with the following line'
prepend nameservers 127.0.0.1
search canmail.org
have searched high and low but just get a bunch of different answers most of which do not make sense.
|
This is caused by changing from a static ip to dynamic ip & back
refer to /usr/share/doc/dhclient-3.0.5/dhclient.conf.sample
create /etc/dhclient.conf
containing line below changing the ip to your ip
prepend domain-name-servers 127.0.0.1;
this will change resolve.conf from
; generated by /sbin/dhclient-script
search your.domain
nameserver 192.168.5.1
To This
; generated by /sbin/dhclient-script
search your.domain
nameserver 127.0.0.1
nameserver 192.168.5.1
As i have 3 nics to switch between on my laptop.
Note changing resolv.conf files in /etc/sysconfig/networking/profiles
won't fix this problem.
Enjoy!