Quoth Raju Alluri on Thu, Jul 06, 2006 at 05:04:05PM +0530:
>    Have been juggling with SunPPPoE packages on B41. Somehow, the "pppd
>    call isp" call doesn't find the nameservers automatically and updates
>    /etc/resolv.conf. If I have a /etc/ppp/resolv.conf, it copies the file
>    over to /etc/resolv.conf, but doesn't go anywhere close to finding it
>    realtime from my ISP. Why this limitation? Am I missing some trivial
>    configuration?

pppd(1M) says

     usepeerdns

         Ask the  peer  for  up  to  two  DNS  server  addresses.
         Addresses  supplied  by  the peer, if any, are passed to
         the /etc/ppp/ip-up script in the  environment  variables
         DNS1   and   DNS2.   In   addition,   pppd   creates  an
         /etc/ppp/resolv.conf  file   containing   one   or   two
         nameserver  lines  with  the address(es) supplied by the
         peer.

To update /etc/resolv.conf, you either have to copy /etc/ppp/resolv.conf
over in your ip-up script, or create /etc/resolv.conf from $DNS1 & $DNS2
in your ip-up script.


David

Reply via email to