[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] rp3 problems



Sandip Bhattacharya forced the electrons to say:
> I have a resolv.conf file with all the namesrvers of VSNL that  I know
> of. Now as soon as wvdial and/or rp3 dials and connects, it overwrites

First of all, I should warn you of one thing - you can put as many name
servers in your /etc/resolv.conf, but only the first three are used by the
resolver functions. The rest are silently ignored.

> resolv.conf with the nameservers that it has received as part of the PPP
> handshaking process. Now in case it doesn't(which happens sometimes) the

While looking through the documentation of pppd, I had noticed an ms-dns
option, which tells MS clients what the DNS addresses are. Probably, in one
case, your machine is (incorrectly) recognized as an MS client by MTNL's ppp
server, and it sends you DNS addresses, and in the other case, it doesn't.

> 2. Is there a way I can turn off this not-quite-helpful habit of
> overwriting my resolv.conf file? I appreciate the helpful offering of

What I have been doing is to keep my resolver configuration file elsewhere,
and have a line

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

in /etc/ppp/ip-up.

Binand

-- 
#include <stdio.h>                                   | Binand Raj S.
char *p = "#include <stdio.h>%cchar *p = %c%s%c;     | This is a self-
int main(){printf(p,10,34,p,34,10);return 0;}%c";    | printing program.
int main(){printf(p,10,34,p,34,10);return 0;}        | Try it!!

--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.