resolv.conf overwrite
using redhat enterprise 4:
my resolv.conf is over write by the internet provider my hostname is pc1.homeserver.in my domainname is homeserver.in before connecting to internet by resolv.conf is: nameserver 192.168.1.1 and domain is resolv by dig command but everythink goes fine. but when I connect to internet the resolv.conf change to ; generated by /sbin/dhclient-script nameserver 192.168.15.1 because of this my own domain is not resolv its my local domain help me out of this problem |
Try
sudo vim /etc/dhcp3/dhclient.conf Edit the following two lines to read as supersede domain-name “mydomain.com”; prepend domain-name-servers 192.168.1.1 Wait trying to test this Also if not above you can try to add /etc/dhclient-enter-hooks that contains the following:- make_resolv_conf( ) { logger -t "dhclient-enter-hooks" "Doing nothing to /etc/resolv.conf" } |
All times are GMT -5. The time now is 02:08 AM. |