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