home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / programm / 5703 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  1.6 KB

  1. Xref: sparky comp.unix.programmer:5703 comp.sources.wanted:5386
  2. Newsgroups: comp.unix.programmer,comp.sources.wanted
  3. Path: sparky!uunet!newsflash.concordia.ca!nstn.ns.ca!cs.dal.ca!ug.cs.dal.ca!franklin
  4. From: franklin@ug.cs.dal.ca (Steve Franklin)
  5. Subject: Re: Get hostname from IP address
  6. Message-ID: <BzBAIH.JAv@cs.dal.ca>
  7. Sender: usenet@cs.dal.ca (USENET News)
  8. Nntp-Posting-Host: ug2.cs.dal.ca
  9. Organization: Math, Stats & CS, Dalhousie University, Halifax, NS, Canada
  10. References: <1992Dec11.152438.18365@fwi.uva.nl> <1992Dec15.155506.418@ccnews.nctu.edu.tw>
  11. Date: Tue, 15 Dec 1992 17:42:17 GMT
  12. Lines: 31
  13.  
  14. In article <1992Dec15.155506.418@ccnews.nctu.edu.tw> hch@CCCA.NCTU.edu.tw (Huang Chih-Hsien) writes:
  15. >dejesus@archimedes.nwc.navy.mil (Francisco X DeJesus) writes:
  16. >>I'd like to find a utility I can call from the command-line with an
  17. >>internet IP address as an argument, and have it return to me the full
  18.  
  19. >(EXAMPLE: lookup 140.111.3.21 for NCTUCCCA.edu.tw)
  20. >% nslookup 
  21. >> set type=ptr
  22. >> 21.3.111.140.in-addr.arpa.
  23. >
  24.  
  25. or of course, you can try this:
  26.  
  27. 13:38(1)/bin% host 129.173.4.4
  28. (rad prompt eh? time, shell-level, and base directory)
  29.     Name: ug.cs.dal.ca
  30.     Address: 129.173.4.4
  31.     Aliases:
  32.  
  33. if you just want the host name?
  34.  
  35. 13:40(1)/bin% host 129.173.4.4 | grep "Name" | awk '{printf"%s\n",$2}'
  36.  
  37.     ug.cs.dal.ca
  38.  
  39. steve
  40. -- 
  41. aasdSteveFranklin-Subliminal Psychology Major.ks;dlasBlueJaysRULEkasdfeahsdbfl
  42. sd;lfaswoq[eBuyMeAQuadra!!!mbnZMXCNdfsba;KdSPAMiuroqiyetIBMSuxiweuryth'ewr;mxn
  43. qpuepriuPartyOneqtuj;,n.,xnc,kjasFlameMeNot!;lkj;lkgkjd;askElvisLivesjhfquweru
  44. zx.cfranklin@ug.cs.dal.ca,sk;t;lrut[Superboy@ac.dal.cav.zx,Physics!eq3rwkh;oHA
  45.