LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   How do I keep my DNS server settings set? (https://www.linuxquestions.org/questions/mandriva-30/how-do-i-keep-my-dns-server-settings-set-496324/)

hamster 10-28-2006 06:12 AM

How do I keep my DNS server settings set?
 
Hi,

I have set up my DNS Server settings to use my IP provider's and when I do - the net is fast. But after awhile it resets to 192.168.1.254.

I checked my resolv.conf and see its correct when it works.

[hamster@localhost win_e]$ cat /etc/resolv.conf
nameserver 213.94.190.194
nameserver 213.94.190.236
# nameserver 192.168.1.254

But later it is set back to 192.168.1.254 ? Anyone come across this? This is a strange one. I'm running Mandriva 2007 free with standard install of package under KDE 3.5.

hamster 10-28-2006 06:21 AM

Ah ha - Now after a few minutes the files has automatically been updated with... removing my dns primary and secondary ips.

[hamster@localhost sysconfig]$ cat /etc/resolv.conf

nameserver 192.168.1.254

hamster 10-28-2006 08:01 AM

Well... I resolved it by giving myself a static ip address.

GlennsPref 10-28-2006 07:57 PM

I found that putting in

search localhost 127.0.0.1

at the end of everything allowed DHCP to function when connected to the net
and allowed everything else to function when not connected to the gateway/network. (like logging and stuff)

(And a blank line to signify the end of the list at the end.)

But that was some time ago, (yp)bind and dhcpd were installed too.


All times are GMT -5. The time now is 01:09 AM.