resolv.conf dns issues
In my resolv.conf file I have the entry 192.168.8.1 and then the proper dns address under it as the next entry. I have deleted the 192.168.8.1 and left only that one under it and it works fine however it only takes about a half an hour and the bad entry is back. I have denied permissions on this file and it still somehow gets edited. How can I make the entries I want and delete the rest and actually have them gone for good.
in other words I only want 1 dns address the correct one if I add 2 correct ones then one gets deleted and the 192.168.8.1 gets added in its place. All I want to do is make my resolv.conf file right and have it stay that way. |
Quote:
For example: In SuSE, there is a YaST setting that allows you to disable nameserver updating via dhcp, and you can then specify the nameservers manually. |
I am using mandrake 10.1
|
Well, unfortunately I don't know mandrake.
Here's a CLI alternative in case your network scripts look anything like SuSE's. First back up the dhcp file in case you mangle it: Code:
cp /etc/sysconfig/network/dhcp /etc/sysconfig/network/dhcp.backup Code:
DHCLIENT_MODIFY_RESOLV_CONF="yes" Code:
DHCLIENT_MODIFY_RESOLV_CONF="no" Code:
/etc/init.d/network restart Good luck. |
All times are GMT -5. The time now is 04:29 AM. |