Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!zaphod.mps.ohio-state.edu!math.lsa.umich.edu!math.lsa.umich.edu!emv From: edwin@praxis.cs.ruu.nl (Edwin Kremer) Newsgroups: comp.archives Subject: [comp.unix.questions] Re: name server Keywords: hostname, reverse-mapping, ptr, nslookup, nameservers Message-ID: <1990Sep10.210856.15479@math.lsa.umich.edu> 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: nsl/10-Sep-90 Original-posting-by: edwin@praxis.cs.ruu.nl (Edwin Kremer) Original-subject: Re: name server Archive-site: archive.cs.ruu.nl [131.211.80.5] Archive-directory: /pub/UNIX Reposted-by: emv@math.lsa.umich.edu (Edward Vielmetti) In <2210@ux.acs.umn.edu> aaron@ux.acs.umn.edu (Aaron Y.T. Cheung) writes: | | Does anyone know how to obtain the hostname of a machine given the IP | | address using a name server (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. | [...] 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 programs that won't consult the nameserver 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.ruu.nl" [131.211.80.5]. Look for the file "pub/UNIX/nsl-1.0.0.tar.Z". If you don't have Internet access, send a message to our mail-server program that can be reached at the address: 'mail-server@cs.ruu.nl', containing following instructions in the message body: begin send UNIX/nsl-1.0.0.tar.Z end enjoy and thanks for your time, --[ Edwin ]-- -- Edwin Kremer (SysAdm), Dept. of Computer Science, Utrecht University Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands Telephone: +31-30-534104 | UUCP: ...!uunet!mcsun!hp4nl!ruuinf!edwin Telefax : +31-30-513791 | Email: edwin@cs.ruu.nl [131.211.80.5]