Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!mips!spool2.mu.edu!uwm.edu!ux1.cso.uiuc.edu!mp.cs.niu.edu!rickert From: rickert@mp.cs.niu.edu (Neil Rickert) Newsgroups: comp.unix.questions Subject: Re: Hostname from Internet address? Message-ID: <1990Dec25.160148.4035@mp.cs.niu.edu> Date: 25 Dec 90 16:01:48 GMT References: <1990Dec25.070328.4413@msuinfo.cl.msu.edu> Organization: Northern Illinois University Lines: 15 In article <1990Dec25.070328.4413@msuinfo.cl.msu.edu> raja@cpswh.cps.msu.edu writes: > >about the other way round? Given an internet >address (e.g. 1.2.3.4), how would one find the >complete hostname? > The library function gethostbyaddr() is provided for this purpose. But if you want to use 'nslookup', set type=PTR, then resolve the address 4.3.2.1.in-addr.arpa. -- =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= Neil W. Rickert, Computer Science Northern Illinois Univ. DeKalb, IL 60115 +1-815-753-6940