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

Re: ppp daemon 0dns-up fails!



Purging configuration files for isdnutils ...  
Removing ipppd ...  
Stopping ipppd: ipppd.  
Purging configuration files for ipppd ...  
deblnx:/home/john#  
  
Following file from plog after removing addition exit 0 from usepeerdns: 
  
Oct  4 23:17:33 deblnx pppd[1070]: rcvd [LCP EchoRep id=0x1 ma  
gic=0x0]  
deblnx:/home/john# plog  
Oct  4 23:20:04 deblnx pppd[1206]: local  IP address 65.58.9.5  
1  
Oct  4 23:20:04 deblnx pppd[1206]: remote IP address 63.215.27  
.34  
Oct  4 23:20:04 deblnx pppd[1206]: primary   DNS address 209.2  
44.0.3  
Oct  4 23:20:04 deblnx pppd[1206]: secondary DNS address 209.2  
44.0.4  
Oct  4 23:20:04 deblnx pppd[1206]: Script /etc/ppp/ip-up start  
ed (pid 1247)  
Oct  4 23:20:04 deblnx pppd[1206]: Script /etc/ppp/ip-up finis  
hed (pid 1247), status = 0x0  
Oct  4 23:20:33 deblnx pppd[1206]: sent [LCP EchoReq id=0x1 ma  
gic=0x4ea822a8]  
Oct  4 23:20:33 deblnx pppd[1206]: rcvd [LCP EchoRep id=0x1 ma  
gic=0x0]  
deblnx:/home/john#  
  
And this ( which returned exit status 1) from 0dns-up: 
  
deblnx:/home/john# plog  
Oct  4 23:25:39 deblnx pppd[1354]: rcvd [IPCP ConfAck id=0x2 <addr
67.75.62.202> <compress VJ 0f 01> <ms-dns1  
209.244.0.3> <ms-dns3 209.244.0.4>]  
Oct  4 23:25:39 deblnx pppd[1354]: Cannot determine ethernet address for
proxy ARP  
Oct  4 23:25:39 deblnx pppd[1354]: local  IP address 67.75.62.202  
Oct  4 23:25:39 deblnx pppd[1354]: remote IP address 63.215.27.33  
Oct  4 23:25:39 deblnx pppd[1354]: primary   DNS address 209.244.0.3  
Oct  4 23:25:39 deblnx pppd[1354]: secondary DNS address 209.244.0.4  
Oct  4 23:25:39 deblnx pppd[1354]: Script /etc/ppp/ip-up started (pid
1395)  
Oct  4 23:25:39 deblnx pppd[1354]: Script /etc/ppp/ip-up finished (pid
1395), status = 0x1  
deblnx:/home/john#  
  
I guess from what i have  learned that 0dns-up is the file that is
failing. What do I/we do about it now?  
I'm including my 0dns file here. Much, much thanks for all your help.  
  
#!/bin/sh  
  
# 0dns-up by John Hasler 4 Apr 1999.  You may treat this program as if it  
# was in the public domain.  
  
# Rev. Dec 22 1999 to put dynaminc nameservers last.  
  
# Rev. Aug 20 2001 to use patch from Sergio Gelato
<Sergio.Gelato@astro.su.se>.  
  
# 0dns-up sets up /etc/resolv.conf for the provider being connected to.
 In  
# conjunction with pppd's usepeerdns option it also handles dynamic dns.  
# It expects to be passed the provider name in PPP_IPPARAM.  
  
# If pppconfig has been removed we are not supposed to do anything.  
  
test -f /usr/sbin/pppconfig || exit 0  
  
PROVIDER="$PPP_IPPARAM"  
ETC="/etc"  
PPPRESOLV="$ETC/ppp/resolv"  
TEMPRESOLV="resolv.conf.ppp.temp$$"  
RESOLVBAK="resolv.conf.ppp.bak"  
RESOLVCONF="resolv.conf"  
  
# Security: we sit in the $ETC directory while we do our work.  
  
cd "$ETC" || exit 1  
  
# We better not do anything if resolv.conf.bak already exists.  
  
test -f "$RESOLVBAK" && exit 0  
  
# Put the resolv.conf for this provider (if it exists) in a temp file.  
# If we are using dynamic dns it will be empty or contain any resolver  
# options the user added.  Otherwise it will be a complete resolv.conf for  
# this provider.  
  
# Security: make sure the temp file has the right permissions from the
outset.  
# This script should run as root, and . should only be writable by root.  
test -f $TEMPRESOLV && /bin/rm -f $TEMPRESOLV  
umask 022  
  
# We trust $PPPRESOLV/$PROVIDER.  
test -f "$PPPRESOLV/$PROVIDER" && cat $PPPRESOLV/$PROVIDER > $TEMPRESOLV  
  
# USEPEERDNS, DNS1, and DNS2 are variables exported by pppd.  Do we have  
# usepeerdns and a couple of nameservers?  If so, put a couple of  
# nameserver lines in the temp file.  
  
if [ "$USEPEERDNS" ] && [ "$DNS1" ] ; then  
    echo "" >> $TEMPRESOLV  
    echo  "nameserver $DNS1" >> $TEMPRESOLV  
    if [ "$DNS2" ] ; then  
        echo "" >> $TEMPRESOLV  
        echo  "nameserver $DNS2" >> $TEMPRESOLV  
    fi  
fi  
  
# If we haven't created TEMPRESOLV by now, just exit.  
  
test -f $TEMPRESOLV || exit 0  
  
# Back up resolv.conf, and replace it with the new resolv.conf from the
temp file.  
# Remember that the old resolv.conf might be a symbolic link.  
  
if test -L $RESOLVCONF; then  
    # Assume GNU cp.  
    /bin/cp -dp $RESOLVCONF $RESOLVBAK || exit 1  
elif test -f $RESOLVCONF; then  
    /bin/ln $RESOLVCONF $RESOLVBAK || exit 1  
elif test -e $RESOLVCONF; then  
    exit 1  
fi  
/bin/mv $TEMPRESOLV $RESOLVCONF  
exit 0  
  
  
# Tell nscd about what we've done.  
test -x /usr/sbin/nscd || exit 0  
/usr/sbin/nscd -i hosts || exit 0  
  
  


-------------------------------------------------------------------------------------------
***Protect your PC from local E-Mail Application security holes***
***Maintain your Privacy - MS Passport Free***
***Anti SPAM "Whitelist" feature***

http://www.x-mail.net Web Based E-Mail, accessible anywhere

Voice Messages, Voice Calls (VoIP), Video Conferencing, Live Chat, 
X-Mail Messenger, Personal Web Hosting, 128 bit SSL Secure, 
Calendar, Bookmarks, Forwarding, Virtual Mail Map Aliasing

X-Mail Premium: 20MB Messages, 100MB Storage, SMTP, POP3, Ad Free
-------------------------------------------------------------------------------------------
Anonymous Web Surfing http://www.snoopblocker.com
Search http://www.teradex.com
  




Reply to: