How to change the DNS
Hello friends!!!
can anybody tell me how to change the DNS in Mandriva Linux. I tried to change it from the file Code:
/etc/resolv.conf How can I change the setting permanently. |
|
I followed the link:
http://expert.mandriva.com/question/76893 But the code snippet presented over there is quite different from mine. In my machine it looks like the following: Code:
make_resolv_conf() { Now the thing is that I use DHCP for my network configuration and I want to change the DNS. I try to change it in /etc/resolv.conf but the change is not reflected when I reboot. How can I change the script. Please help!!!!!!!!!!11 |
By default, I think DHCP automatically detects the DNS addresses and updates resolv.conf. I've seen settings to disable this, but I don't know where it shows up in config files.
|
in /etc/sysconfig/network*/ifcfg-eth0 file add following line
peerdns = no |
I think this will work in your version of Linux (Mandriva) from the command line type:
Quote:
Quote:
|
well thanks for all your help s but the problem is not yet solved!!!!!!
firstly @ bskrakes Code:
system-config-network @eyemole80 I think yours shall help. Though the problem is not with eth0 but with ppp0...yet I have changed accordingly!!!! |
All times are GMT -5. The time now is 06:46 AM. |