LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DNS entries vanishes after login in Ubunutu 5.10 (https://www.linuxquestions.org/questions/linux-networking-3/dns-entries-vanishes-after-login-in-ubunutu-5-10-a-417925/)

c_anindya 02-21-2006 06:07 AM

DNS entries vanishes after login in Ubunutu 5.10
 
Hi,

I am using Ubuntu Breezy. My pc is connected to a switch(which is connected to a DSL modem) and gets IP from that. But, I want to keep two "fixed DNS server entry" in resolve.conf . But the problem is everytime I log in or do some system update thru aptget the DNS entries are gone! Could anybody help me in this regard?I tried Ubuntu IRC but didn't get much help there.

thanks,
ani

born4linux 02-22-2006 09:02 PM

edit resolv.conf and set your desired entries.
to make it permanent, use chattr:

sudo chattr +i /etc/resolv.conf

that will make the file immutable - no update can be made unless
you disable it (via sudo chattr -i /etc/resolv.conf).

hth.


All times are GMT -5. The time now is 11:59 PM.