Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!ruuinf!praxis!edwin From: edwin@praxis.cs.ruu.nl (Edwin Kremer) Newsgroups: comp.unix.questions Subject: Re: nslookup and IP addresses Message-ID: <2104@ruuinf.cs.ruu.nl> Date: 28 Nov 89 09:18:37 GMT References: <6026@lindy.Stanford.EDU> <6027@lindy.Stanford.EDU> Sender: news@ruuinf.cs.ruu.nl Lines: 32 In article <6027@lindy.Stanford.EDU> odin@ucscb.UCSC.EDU (Jon Granrose) writes: > Can anyone tell me a reliable way to find the site name associated > with a given IP address? Example: say I have address 128.114.133.1 which > happens to be a local machine ssyx.ucsc.edu. This is how I usually do it (I don't know if there are easier ways): Set querytype=ptr, reverse the address and add ".in-addr.arpa", like this: % nslookup Server: ... Address: .... > set q=ptr > 1.133.114.128.in-addr.arpa 1.133.114.128.in-addr.arpa host name = ssyx.UCSC.EDU > --[ Edwin ]-- -- Edwin Kremer, Department of Computer Science, University of Utrecht Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands Phone : +31 - 30 - 534104 | Telefax: +31 - 30 - 513791 E-Mail: edwin@cs.ruu.nl | UUCP to: ...!hp4nl!ruuinf!edwin