LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Resolv.conf problem (https://www.linuxquestions.org/questions/linux-software-2/resolv-conf-problem-133659/)

saurya_s 01-11-2004 08:45 AM

Resolv.conf problem
 
Hi guys
I have got linux on my laptop. I connect to LAN at work and when I bring it to home I use dialup.
Now, when I come to home, the dial up doesn't wok unless I remove the resolv.conf while which had DNS of my LAN. Actually, it connects to the ISP but webpages etc are not dispalyed unless i remove it.
Though it works perfectly at work ,probably because of DHCP.

Can I make it to work with dialup without removing resolv.conf of lan. I did try to put the DNS entry of dialup and LAN in resolv.conf but the problem still exists. I would like something as easy as Mac or Win whereby it detects LAN automatically, while it does the dialup when at home without playing with resolv.conf.
Thanks
SS

coolamit78 01-11-2004 11:26 AM

I dont think there is any need to remove resolv.conf every time u want to connect using dial up...

You should instead de-activate the eth0 interface ...on the console, as root, give

ifdown eth0

OR

from the Network Device Control dialog (if its there in Mandrake), deactivate interface eth0...

You can use dial up then...and whenever u want to restore eth0 say

service network restart OR
ifup eth0

Hope that works for you...

Regards,

amit

saurya_s 01-11-2004 12:41 PM

Thanks Amit
Will try that! BTW where are u in delhi? Delhi is my hometown, I am just doing research here at Oxford Univ.
Cheeres

coolamit78 01-11-2004 12:53 PM

Well...ya...I am in New Delhi and its my hometown too....its good to hear that you're into research stuff....would be nice if u would tell something more abt urself and what stuff u r into.....

Regards,

amit


All times are GMT -5. The time now is 06:25 AM.