name server

karl_kleinpaste at cis.ohio-state.edu karl_kleinpaste at cis.ohio-state.edu
Tue Sep 11 00:46:39 AEST 1990


tomiii at mtus5.bitnet 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?) ?

host(1) is better for 99+% of the usual queries you want to make,
including automatic in-addr.arpa queries when given a dotted quad, no
need to do special "query=ptr" things.

| [78] [10:41am] giza:/n/giza/0/karl> host 128.146.8.60
| Name: tut.cis.ohio-state.edu
| Address: 128.146.8.60
| Aliases:
| 
| [79] [10:42am] giza:/n/giza/0/karl> host 128.146.0.0
| Name: net.ohio-state.edu
| Address: 128.146.0.0
| Aliases:
| 
| [80] [10:42am] giza:/n/giza/0/karl> host -a tut.cis.ohio-state.edu.
| tut.cis.ohio-state.edu  1395 IN A       128.146.8.60
| tut.cis.ohio-state.edu  86400 IN        HINFO   pyramid-98x     unix
| tut.cis.ohio-state.edu  86400 IN        MX      100 tut.cis.ohio-state.edu
| tut.cis.ohio-state.edu  86400 IN        WKS     128.146.8.60 udp 42 tftp sunrpc
| tut.cis.ohio-state.edu  86400 IN        WKS     128.146.8.60 tcp ftp telnet smtp nameserver sunrpc
| Additional information:
| tut.cis.ohio-state.edu  1395 IN A       128.146.8.60

You can pick it up as tut.cis.ohio-state.edu:pub/nameserver/host.[1c].
Chuck Hedrick/Rutgers is responsible for it.

--karl



More information about the Comp.unix.misc mailing list