From ujj@chem.ufl.edu Thu Jun 8 21:59:45 EDT 1995 Article: 10503 of comp.os.linux.networking Path: magnus.acs.ohio-state.edu!math.ohio-state.edu!uwm.edu!news.alpha.net!news.mathworks.com!usenet.eel.ufl.edu!usenet.cis.ufl.edu!clas.ufl.edu!server.chem.ufl.edu!ujj From: ujj@server.chem.ufl.edu () Newsgroups: comp.os.linux.networking Subject: TALK PROBLEM SOLVED!!! (long)(Was:Re: talk not working) Date: 8 Jun 1995 15:54:30 GMT Organization: University of Gators Lines: 71 Message-ID: <3r76fm$ide@cutter.clas.ufl.edu> References: <3qstsn$2sv@zen.pncl.co.uk> <3r05nb$663@news.icon.net> <3r1j48$k6o@hermes.is.co.za> <3r2430INN1n9@scarecrow.mke.ab.com> Reply-To: ujj@chem.ufl.edu NNTP-Posting-Host: server.chem.ufl.edu X-Newsreader: TIN [version 1.2 PL2] Sorry for shouting the subject line, but I am very happy because I CAN TALK... WAHOOOOO... Ok, here's what I did to get rid of that stupid [checking for invitation...] It turns out that the hostame on your local machine needs to be changed to the IP address that is given to you when you establish communications using slip, ppp. so, if I connect via PPP to the PPPserver which is connect to the internet via cable, PPP ethernet my machine ---> PPPserver -------->internet ujj.ujj1.com server.chem.ufl.edu 127.0.0.1 128.227.16.141 ujj.ujj1.com is my hostname BEFORE I connect using PPP, server.chem.ufl.edu is a linux box that is connected to the internet by cable. When I dial in using pppd and chat, the PPP server issues me an IP number address, 128.227.16.132. Therefore, we have: PPP ethernet my machine ---> PPPserver -------->internet ujj.ujj1.com server.chem.ufl.edu 128.227.16.132 128.227.16.141 BUT, ujj.ujj1.com doesn't match with 128.227.16.132. Others have suggested that I put in my /etc/hosts file: 128.227.16.132 ujj.ujj1.com slip1.chem.ufl.edu but this didn't seem to work (did I put it in correctly?). The answer was sitting right there in a ppp script that someone (Jon Lewis) gave me. In his script, he used nslookup on 128.227.16.132 and did some grepping and awking to extract the Name of the IP address. So, nslookup 128.227.16.132 --------> slip1.chem.ufl.edu. Then he used the /bin/hostname command to change the hostname ujj.ujj1.com to slip1.chem.ufl.edu. hostname ujj.ujj1.com --------> slip1.chem.ufl.edu Everything, including talk, seems to be working. YIPPEEEEE. I even commented out the stuff I put in the /etc/hosts file and I can still use talk. Below is part of the ip-up script that grabs the address and changes the hostname: address=`/sbin/ifconfig ppp0 | grep addr: | awk -F: '{s=$2} \ {split(s,a," ")} {print a[1]}'` echo address is $address /bin/hostname `nslookup $address | grep Name | awk '{print $2}'` Make sure that your gateway is set up properly because nslookup looks up the IP address from your defined nameserver (/etc/resolv.conf). Let me know if anyone has any questions, I maybe able to help. If someone sees a mistake with the above, please post a follow and notify us. Ciao, Ujjal Bansel ujj@chem.ufl.edu From wiseman@cs.uchicago.edu Thu Jun 8 22:00:07 EDT 1995 Article: 10507 of comp.os.linux.networking Newsgroups: comp.os.linux.networking Path: magnus.acs.ohio-state.edu!math.ohio-state.edu!uwm.edu!uwvax!uchinews!wiseman From: wiseman@gargoyle164.uchicago.edu (John Wiseman) Subject: Re: TALK PROBLEM SOLVED!!! (long)(Was:Re: talk not working) In-Reply-To: ujj@server.chem.ufl.edu's message of 8 Jun 1995 15:54:30 GMT X-Nntp-Posting-Host: gargoyle.uchicago.edu Message-ID: Sender: news@midway.uchicago.edu (News Administrator) Reply-To: wiseman@cs.uchicago.edu Organization: Univ. of Chicago Computer Science Dept. References: <3qstsn$2sv@zen.pncl.co.uk> <3r05nb$663@news.icon.net> <3r1j48$k6o@hermes.is.co.za> <3r2430INN1n9@scarecrow.mke.ab.com> <3r76fm$ide@cutter.clas.ufl.edu> Date: Thu, 8 Jun 1995 17:03:58 GMT Lines: 22 In article <3r76fm$ide@cutter.clas.ufl.edu> ujj@server.chem.ufl.edu () writes: Below is part of the ip-up script that grabs the address and changes the hostname: address=`/sbin/ifconfig ppp0 | grep addr: | awk -F: '{s=$2} \ {split(s,a," ")} {print a[1]}'` echo address is $address /bin/hostname `nslookup $address | grep Name | awk '{print $2}'` Instead of using ifconfig to find out what the address is, just use $4. pppd passes the local IP address to /etc/ppp/ip-up (you might want to confirm first that it is the fourth argument). John Wiseman