O'Reilly logo

Windows Server 2003 in a Nutshell by Mitch Tulloch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

nslookup

Synopsis

Diagnostic utility that displays information stored in DNS servers.

Modes

nslookup has two modes of operation:

Interactive

In this mode, an nslookup shell is opened so that any sequence of nslookup commands can be run one at a time. Enter interactive mode by typing:

                              nslookup
Noninteractive

In this mode, only a single nslookup command is run, after which you return to the command prompt. The syntax is:

nslookup -command host DNSserver
-command

One of the nslookup commands in the following list. The hyphen is part of the syntax.

host

The IP address or hostname of the host whose DNS information you want to obtain from the DNS server. If you use a hyphen, the prompt changes to nslookup interactive mode.

DNSserver

The IP address or hostname of the DNS server you want to query. (If omitted, the default DNS server for the local machine is used.)

Commands

exit

Quits the interactive mode of nslookup.

finger [username]

Fingers the current computer for a list of currently logged-on users. If you specify username, then the information for that user is obtained.

ls [option] dnsdomain [[> | >>] filename]

Lists (or redirects to a file) different subsets of resource records for the specified DNS domain depending on the option selected, specifically:

-t querytype

Lists all records of the specified type (see Table 5-22)

-a

Lists aliases of hosts in the DNS domain (same result as using -t CNAME)

-d

Lists all records for the DNS domain (same result as using -t ANY)

-h

Lists operating-system information ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required