SUMMARY: How to use nslookup to get host name from IP addr

From: J. Porter Clark (jpc@avdms8.msfc.nasa.gov)
Date: Tue May 28 1991 - 15:16:10 CDT


A couple of hours ago I posted this question:

>Is there any way to use nslookup to map from an IP address to a host
>name?
>
>Yes, I know about DiG. I also wrote a short program of my own to call
>gethostbyaddr() using the resolver libraries. The guy who wants to
>know the answer to this question has a DEC machine running VMS but
>which happens to have nslookup.

...and sun-nets did not fail me. As of this moment, I have four
responses:

rackow@antares.mcs.anl.gov
Don Pace <pace@zeppo.cc.fsu.edu>
Karl Anderson <karl@forest.gsfc.nasa.gov>
smb@ulysses.att.com

The answer is as follows. If you want to look up IP address 1.2.3.4:

1. Run nslookup
2. enter "set type=PTR" ("set q=PTR" also works)
3. enter "4.3.2.1.in-addr.arpa"

It's so simple and obvious :-)

-- 
J. Porter Clark       jpc@avdms8.msfc.nasa.gov
Communications Systems Branch
NASA/MSFC/EB33
(205)544-3661         FAX: (205)544-9582



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:14 CDT