home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / ultrix / 5871 < prev    next >
Encoding:
Internet Message Format  |  1992-07-24  |  1.4 KB

  1. Path: sparky!uunet!ogicse!uwm.edu!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!csn!news.uwyo.edu!rtravsky
  2. From: rtravsky@news.uwyo.edu (Rich Travsky)
  3. Newsgroups: comp.unix.ultrix
  4. Subject: Re: How to use nslookup to go from IP address to name?
  5. Message-ID: <1992Jul24.083727.77@news.uwyo.edu>
  6. Date: 24 Jul 92 15:37:27 GMT
  7. Article-I.D.: news.1992Jul24.083727.77
  8. References: <1992Jul24.104122.9943@nntpd.lkg.dec.com>
  9. Distribution: comp,world
  10. Organization: Banzai Institute
  11. Lines: 27
  12.  
  13. In article <1992Jul24.104122.9943@nntpd.lkg.dec.com>, coar@Nephi.Enet.DEC.Com 
  14.   (Rodent of Unusual Size) writes:
  15. >     How can I use nslookup to translate an IP address into a fully-qualified
  16. >     host name?  It will do the reverse, but any time I feed it an address, it
  17. >     just parrots it back to me.
  18. >     #ken    :-)}    Jeratol the Chaotic
  19. The "classic" hack for this is to reverse the order of the IP number
  20. sets and add "in-addr.arpa". So to find the host name of 123.456.0.666,
  21.  
  22.  
  23.     > set q=any
  24.     > 666.0.456.123.in-addr.arpa
  25.     Server: blah.blah
  26.     Address: NNN.NNN.NNN.NNN
  27.  
  28.     666.0.456.123.in-addr.arpa name = beast.hoo-hah.hell
  29.     >
  30.  
  31. The set q=any must be done first, or you'll get an "unspecified error".
  32.  
  33. Richard Travsky
  34. Division of Information Technology     RTRAVSKY @ CORRAL.UWYO.EDU
  35. University of Wyoming                  (307) 766 - 3663 / 3668
  36. "Screaming. A lot of dramatic situations begin with screaming." Barbarella
  37.