Technical data
nslookup
To look up a host not in the current domain, append a dot (.) to the end of the
domain name.
server domain
lserver domain
Changes the default server to
domain
. The
lserver
command uses the initial
server to look up information about
domain
, while the
server
command uses the
current default server. If an authoritative answer cannot be found, the names of
servers that might have the answer are returned.
root
Changes the default server to the server for the root of the domain name space.
Currently, the host
ns.internic.net
is used. (This command is a synonym for
lserver ns.internic.net.
) The name of the root server can be changed with the
set root
command.
finger [name][>filename]
finger [name] [>> filename]
Connects with the
finger
server on the current host. The current host is
defined when a previous lookup for a host was successful and returned address
information (see the
set querytype=A
command). The redirection symbols (> and
>>) can be used to redirect output in the usual manner.
ls [option] domain [> filename]
ls [option] domain [>> filename]
Lists the information available for domain, optionally creating or appending to
filename. The default output contains host names and their IP addresses. The
value for
option
can be one of the following:
Option Description
-t
querytype Lists all records of the specified type. (See
querytype
in
Table A–2.)
-a
Lists aliases of hosts in the domain. This option is a synonym
for
-t CNAME
.
-d
Lists all records for the domain. This option is a synonym for
-t
ANY
.
-h
Lists CPU and operating system information for the domain.
This option is a synonym for
-t HINFO
.
-s
Lists well-known services of hosts in the domain. This option
is a synonym for
-t WKS
. When output is directed to a file, a
pound sign (#) is displayed for every 50 records received from
the server.
view filename
Sorts and lists the output of previous
ls
commands.
help
Displays a brief summary of commands.
exit
Exits the program.
Troubleshooting Utilities Reference A–23