LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   /etc/resolv.conf keeps changing (https://www.linuxquestions.org/questions/linux-networking-3/etc-resolv-conf-keeps-changing-170743/)

silvercastle 04-15-2004 09:15 PM

/etc/resolv.conf keeps changing
 
I have an adsl connection via ethernet on mandrake 10 ce. Everything works fine, except the specified dns in /etc/resolv.conf keeps changing from what I specified, to a different one - one that does not work. I have to keep changing it back. How can I keep it from changing? Please help.

jymbo 04-15-2004 09:58 PM

#touch /etc/resolv.conf.good
#vi /etc/resolv.conf.good
(add the nameserver you want)
#vi /etc/rc.d/rc.local
add this line at the end:
Code:

cp -f /etc/resolv.conf.good /etc/resolv.conf

silvercastle 04-15-2004 10:51 PM

excellent...that seems to have fixed it....thanx for your help


All times are GMT -5. The time now is 03:50 AM.