Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!swrinde!ucsd!ucbvax!agate!darkstar!ucscc.UCSC.EDU!haynes From: haynes@ucscc.UCSC.EDU (99700000) Newsgroups: comp.unix.questions Subject: Re: Hostname from Internet address? Message-ID: <10392@darkstar.ucsc.edu> Date: 25 Dec 90 20:31:07 GMT References: <1990Dec25.070328.4413@msuinfo.cl.msu.edu> Sender: usenet@darkstar.ucsc.edu Reply-To: haynes@ucscc.UCSC.EDU.UUCP (Jim Haynes) Organization: University of California, Santa Cruz CATS Lines: 18 In article <1990Dec25.070328.4413@msuinfo.cl.msu.edu> raja@cpswh.cps.msu.edu writes: > >Given a hostname (e.g. zip.foo.bar.edu), one >can use a network information program like >nslookup to find its Internet address. How >about the other way round? Given an internet >address (e.g. 1.2.3.4), how would one find the >complete hostname? The latest version of nslookup (from BIND.4.8.3) will take either a number or a name. Or you could throw together a little program using gethostbyaddr(). Or there is some arcane manipulation involving nslookup and in-addr.arpa haynes@ucscc.ucsc.edu haynes@ucscc.bitnet "Any clod can have the facts, but having opinions is an Art." Charles McCabe, San Francisco Chronicle