nslookup and IP addresses

Edwin Kremer edwin at praxis.cs.ruu.nl
Tue Nov 28 20:18:37 AEST 1989


In article <6027 at lindy.Stanford.EDU> odin at 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 at cs.ruu.nl       |     UUCP to: ...!hp4nl!ruuinf!edwin



More information about the Comp.unix.questions mailing list