home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / sgi / admin / 11 < prev    next >
Encoding:
Text File  |  1992-12-14  |  1.4 KB  |  49 lines

  1. Newsgroups: comp.sys.sgi.admin
  2. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!sgiblab!sgigate!sgi!xingping.esd.sgi.com!arc
  3. From: arc@xingping.esd.sgi.com (Andrew Cherenson)
  4. Subject: Re: system names from IP
  5. Message-ID: <tk0qf9s@sgi.sgi.com>
  6. Sender: arc@xingping.esd.sgi.com
  7. Organization: Silicon Graphics, Inc.  Mountain View, CA
  8. Date: Tue, 15 Dec 1992 02:17:01 GMT
  9. Lines: 38
  10.  
  11. In article <JACKR.92Dec14175813@dblues.wpd.sgi.com> jackr@wpd.sgi.com (John "Jack" Repenning) writes:
  12. >In article <1992Dec14.172453.26933@den.mmc.com> beck@enterprise.den.mmc.com (Fred R. Beck) writes:
  13. >
  14. >   Has anyone out there ever tried to resolve a system name
  15. >   from an IP number?
  16. >
  17. >It turns out to be even easier than one other responder suggests.
  18. >I've never seen documentation that admits this (so it's probably
  19. >totally unofficial), but every version of nslookup I've ever tried
  20. >will accept:
  21. >
  22. >    nslookup <<EOF
  23. >    set q=ptr
  24. >    $1
  25. >    EOF
  26. >
  27. >That is, you don't need the shell-game to reverse the address and add
  28. >"in-addr.arpa".
  29.  
  30. nslookup takes command-line options. For example,
  31.  
  32.     % nslookup -q=ptr 192.48.153.1
  33.     Server:  sgi
  34.     Address:  0.0.0.0
  35.  
  36.     1.153.48.192.in-addr.arpa       name = SGI.COM
  37.  
  38. When using nslookup on IRIX and other systems using BIND 4.8.3, nslookup
  39. treates IP addresses specially when the query type is A (the default).
  40. For example:
  41.  
  42.     % nslookup 192.48.153.1
  43.     Server:  sgi
  44.     Address:  0.0.0.0
  45.  
  46.     Name:    SGI.COM
  47.     Address:  192.48.153.1
  48.  
  49.