-*- text -*-

To build nslook, edit the Makefile and type "make". 

BSD 4.3:
-lresolv not required (and not available).

Interactive 386/ix 2.0.2: 
Link -linet. 
When I mistyped an address and gave 188.1..1.1, gethostbyname()
returned NULL and h_errno was zero. Strange.

SunOS 4.1.1: 
Link -lresolv.
Since libresolv.a has to be linked with the shared library, it did
only work for me with gcc if I forced gcc to use Sun's ld.

DECstation, Ultrix 4.0:
Link -lresolv.

HP-UX 7.0:
No additional libraries required.

Nixdorf TARGON 31 TOS 4.0.12:
No additional libraries, but looks only in /etc/hosts.

Silicon Graphics IRIX System V.3:
No additional libraries.

IBM AIX 3.0:
No additional libraries.

nslook is a simple form of nslookup. It only gives you what you want
to see: The Internet address of a host, or the host's name for a given
Internet address.

Usage: : nslook [-lmr] [-n] hostname
       nslook [-lm]  [-a] IP-address
       nslook [-lmran] -f file

-a forces interpretation of the argument as an address; -n forces
interpretation of it as a hostname.  Otherwise, it is converted to
a hostname if it looks like an address, and to an address if not.
-l  means "verbose output", -m is "medium format". if -f is given, the
arguments are read from a file or stdin if filename is "-".

Some examples of use:

$ nslook ucbvax.berkeley.edu
128.32.133.1
$ nslook -l ucbvax.berkeley.edu
Official name: ucbvax.berkeley.edu
Address:       128.32.133.1
Address:       128.32.137.3
Address:       128.32.130.12
Address:       128.32.149.36
$ nslook 128.32.130.12
ucbvax.Berkeley.EDU
$ nslook -lr ftp.uni-erlangen.de
Official name: faui43.informatik.uni-erlangen.de
Alias:         ftp.uni-erlangen.de
Address:       131.188.31.3
Address:       131.188.34.43
Address:       131.188.44.43
Address:       131.188.1.43
Reverse map:   faui43.informatik.uni-erlangen.de

Thanks to the following people for suggestions and enhancements (in
order of appearance):

Jamie Zawinski <jwz%thalidomide@lucid.com>
Andreas Stolcke <stolcke@ICSI.Berkeley.EDU>
Stephen Trier <sct@po.cwru.edu>
Douglas C. Schmidt <schmidt@net4.ICS.UCI.EDU>
Mike Gleason <mgleason@cse.unl.edu>

If you have any comments, suggestions, complaints, improvements,
please send them to me: Juergen Nickelsen <nickel@cs.tu-berlin.de>.

Copyrights? what Copyrights?
