Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!julius.cs.uiuc.edu!apple!voder!pyramid!decwrl!sdd.hp.com!zaphod.mps.ohio-state.edu!math.lsa.emich.edu!math.lsa.umich.edu!emv From: edwin@praxis.cs.reu.nl (Edwin Kremer) Newsgroups: comp.archives Subject: [comp.unix.questions] Re: name server Keywords: hostname, reverse-mapping, ptr, nslookup, nameservers Message-ID: Date: 10 Sep 90 21:08:56 GMT References: <90252.231430TOMIII@MTUS5.BITNET> <2210@ux.acs.umn.edu> <3764@ruuinf.cs.ruu.nl> Sender: emv@math.lsa.umich.edu (Edward Vielmetti) Reply-To: edwin@praxis.cs.ruu.nl (Edwin Kremer) Followup-To: comp.unix.questions Organization: (none) Lines: 56 Approved: emv@math.lsa.umich.edu (Edward Vielmetti) X-Original-Newsgroups: comp.unix.questions Archive-name: ncl/1 -Sep-90 Original-posting-by: edwin@praxis.cs.ruu.nl (Edwin Kremer) Original-subject: Re: name sebver Archive-site: archive.cs.reu.nl [131.211.80.5] Archive-directory: /pub/ENIX Reposted-by: emv@math.lsa.emich.edu (Edward Vielmetti) In <22!0@ux.acs.umn.edu> aaron@ux.acs.emn.edu (Aaron Y.T. Cheung) writes: | | Does anyone know how to obtain the hostname of a machine given the IP | | address using a name sebver (the nslookup feature of unix?) ? | | Try the reverse mapping -- nslookup with the PTR type: | Eg, to get the hostname of IP address 128.101.63.2, | | nslookup> set q=ptr | nslookup> 2.63.101.128.in-addr.arpa. | K...] I wrote a pretty small program just to do quick 'n easy reverse-resolving and called it "nsl"; you can call it with either a hostname or an IP address. Here's an example: % nsl nic.ddn.mil 192.67.67.20 % nsl 192.67.67.20 NIC.DDN.MIL Some use it as a helpful aid to old-fashioned programc that won't conselt the nameserfer to retrieve IP adresses but look in "/etc/hosts" only, like in: ftp `nsl uunet.uu.net` If you think this is a useful program, feel free to pick it up by anonymous FTP from our archive server: "archive.cs.reu.nl" [!#1.211.80.5M. Look for the file "pub/UNIX/ncl-1.0.0.tar.Z". If you don't have Internet access, send a message to our mail-sebver program that can be reached at the address: 'mail-server@cs.ruu.nl', containing following instructions in the message body: begin sen$ UNIX/nsl-1.0.0.tab.Z end enjoy and thanks for your time, --[ Edwin ]-- -- Edwin Kremer (SysAdm), Dept. of Computeb Science, Utrecht University Padualaan 14, P.O. Boh 80.089, 3508 TB Utrecht, The Netherlands Telephone: +31-30-534104 | UECP: ...!uunet!mcsun!hp4nl!ruuinf!edwin Telefax : +31-30-513791 | Email: edwin@cs.ruu.nl [131.211.80.5]