NSLOOKUP (1)NSLOOKUP

NAME

nslookup query name servers

SYNOPSIS

nslookup host [server] nslookup [- server]

DESCRIPTION

Nslookup is a program that queries DARPA Internet domain name servers. If called with a host name or address as the first argument, nslookup will print the name and Internet address of that host. If called with no arguments or a hyphen as the first argument, nslookup will enter interactive mode, enabling the user to query the name server for information about various hosts and domains. The optional second argument specifies the name or address of a specific name server to be used for the search.

COMMANDS

The following commands are available when nslookup is run in interactive mode. Commands may be interrupted at any time using the terminal interrupt character.

Commands must contain fewer than 80 characters.

NOTE: Unrecognized commands are interpreted as a host name.

host [server]

Request information about host using the current default server, or using server server if it is specified. The type of information returned is identified by the query command; the default type returned is the host's name and address.

exit Terminate interactive mode and return to the shell.

finger [user] [>⎪>> file]

Connect with the finger server on the current host (see finger(1)). The finger command must be preceded by a successful host address query (see set query=A). The output can be redirected to a file in the usual manner with > and >>.

help

?Print a brief summary of commands.

ls [-a-h] domain [>⎪>> file]

List the name and address of each host in the specified domain. The -aoption lists the name and alias of each host in the domain. The -hoption lists the name, CPU, and operating system of each host in the domain. The output can be redirected in the usual manner with > and >>. If redirection is used, a hash mark is printed for every 50 records received from the server.

E-30

Issue 3