home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!ohstpy!miavx1!watson.lib.muohio.edu!pmurray
- Newsgroups: comp.unix.ultrix
- Subject: Re: How to use nslookup to go from IP address to name?
- Message-ID: <1992Jul24.133238.11883@miavx1.acs.muohio.edu>
- From: pmurray@watson.lib.muohio.edu (Peter Murray)
- Date: 24 Jul 92 13:32:38 -0500
- References: <1992Jul24.104122.9943@nntpd.lkg.dec.com>
- Distribution: comp
- Organization: Miami University Libraries
- Nntp-Posting-Host: watson.lib.muohio.edu
- Lines: 34
-
- coar@Nephi.Enet.DEC.Com (Rodent of Unusual Size) writes:
- : This may be a FAQ, in which case please accept my apologies; I've just
- : added this group.
- :
- : How can I use nslookup to translate an IP address into a fully-qualified
- : host name? It will do the reverse, but any time I feed it an address, it
- : just parrots it back to me.
-
- Translating IP addresses to names requires use of the reverse-mapping
- pointers. The first step is to ask nslookup for a PTR entry, rather than
- an A entry. Then ask for the .in-addr.arpa. pointer. An example is below:
-
- pmurray:~:290: nslookup
- Default Server: lib.muohio.edu
- Address: 134.53.24.2
-
- > set query=ptr
- > 2.24.53.134.in-addr.arpa.
- Server: lib.muohio.edu
- Address: 134.53.24.2
-
- 2.24.53.134.in-addr.arpa host name = watson.lib.muohio.edu
- > exit
-
-
- This is a reverse translation for 134.53.24.2. Note that the numbers are
- reversed in the query.
-
- Peter
-
- --
- Peter Murray, Library Systems Manager pmurray@watson.lib.muohio.edu
- King Library Technical Support pemurray@miavx1.bitnet
- Miami University, Oxford, Ohio W:513/529-2884
-