Subject: Re: usepeerdns
To: None <netbsd-users@netbsd.org>
From: Georges Heinesch <geohei-ml@geohei.lu>
List: netbsd-users
Date: 05/25/2001 10:36:35
Quoting Steven M. Bellovin (18-May-01 12:31:54):

> In message <2923.538T5T5211869geohei9@attglobal.net>, "Georges
> Heinesch" writes

>>But still, even if pppd is doing what it says on the man pages, the
>>/etc/resolv.conf DNS servers are used despite the fact that pppd
>>queries the remote for its DNS servers and that this one spits them
>>out (and pppd stores them in /etc/ppp/resolv.conf). Still, the
>>/etc/resolv.conf DNS servers are used, not the /etc/ppp/resolv.conf
>>servers.
>>
>>How can I _easily_ change that?

> The easiest way, if you always want the PPP resolvers used, is to
> lin
> /etc/resolv.conf and /etc/ppp/resolv.conf together.  What I did was
> to  perform surgery on ip-up and ip-down from xisp.

> ---- ip-up
> #!/bin/sh

> # First setup all variables passed on from pppd
> #-----------------------------------------------
> interface=$1
> device=$2
> [...]

I'm presently doing some experimenting with ip-up.

----- /etc/ppp/ip-up -----
#!/bin/sh
echo "testing ..."
----- cut here -----

When dialing in using "pppd call ISP", the text "testing ..." is not
given out (x bit is set). Why?

TIA

-- 
Cu  Georges Heinesch, Luxembourg
    geohei@geohei.lu
    http://www.geohei.lu
    PGP RSA & DH/DSS public key on request and on public servers

... ELLX