home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / question / 14936 < prev    next >
Encoding:
Internet Message Format  |  1992-12-23  |  1.4 KB

  1. Path: sparky!uunet!noc.near.net!bigboote.WPI.EDU!bigboote.wpi.edu!john
  2. From: john@sekrit.WPI.EDU (John Stoffel)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: How to find IP name knowing IP adress?
  5. Date: 23 Dec 92 16:41:24
  6. Organization: Worcester Polytechnic Institute
  7. Lines: 22
  8. Message-ID: <JOHN.92Dec23164124@sekrit.WPI.EDU>
  9. References: <Test_News.15.725105040@uci.agh.edu.pl>
  10.     <1992Dec23.192341.5725@jupiter.sun.csd.unb.ca>
  11. NNTP-Posting-Host: sekrit.wpi.edu
  12. In-reply-to: jaf@jupiter.sun.csd.unb.ca's message of Wed, 23 Dec 1992 19:23:41 GMT
  13.  
  14. >>>>> On Wed, 23 Dec 1992 19:23:41 GMT, jaf@jupiter.sun.csd.unb.ca (Tony Fitzgerald) said:
  15.  
  16. Tony> In article <Test_News.15.725105040@uci.agh.edu.pl> Test_News@uci.agh.edu.pl (News testing account) writes:
  17. >
  18. > For example : I have adress 149.156.96.9
  19. > How to find name of machine ?
  20.  
  21. Tony> perl -e 'print $n=(gethostbyaddr(pack('C4',(149,156,96,9)),1)),"\n"'
  22.  
  23. which on our system we had to change to:
  24.  
  25. perl -e 'print $n=(gethostbyaddr(pack('C4',(149,156,96,9)),2)),"\n"'
  26.  
  27. a very subtle change I admit, but the error messages returned were
  28. less than informative.  In fact it didn't exist.  :]
  29.  
  30.                 John
  31. --
  32. Youth of today!  Join me in a mass rally for traditional mental attitudes!
  33. -------------------------------------------------------------------------------
  34. john@wpi.wpi.edu | Work Station Specialist | Worcester Polytechnic Institute
  35. John Stoffel     | 508-831-5512 (work)     | Worcester, MA  01609
  36.