[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: problems with pon



Hi:

It's possible that a domain name search isn't including localhost. To prove this, start your browser and connect to http://64.28.67.150 If this works, DNS isn't.

I added the line "search localhost" to my /etc/resolv.conf. The problem is that pppd rewrites this file each time a connection's made & your ISP provides DNS servers (Very Likely). This rewrite erases the "search" directive.

By modifying the script /etc/ppp/ip-up.d/0dns-up this change becomes permanent.

 if [ "$USEPEERDNS" ] && [ "$DNS1" ] ; then
    echo -e "search localhost" >> $TEMPRESOLV  <-- new line
    echo -e "\nnameserver $DNS1" >> $TEMPRESOLV <-- modified to use ">>" from ">"
    if [ "$DNS2" ] ; then
        echo -e "\nnameserver $DNS2" >> $TEMPRESOLV
    fi
fi

hth,

Marcelo wrote:

Hi!

at home I am runnin woody, and use pon to connect to my ISP. Now I have a 
problem: I cannot connect to my ISP. Something is going worng when the 
connection is established, but I don't know what. The problem is the same if I 
use PAP or CHAT to talk to the ISP. Now the funny thing: If I use Windows 
(with the same telephone line) the connection goes fine.

Any help will be very welcome!!

TIA
-- 
microsoft free by 2003
 
Reply to: