Nslookup tool (Windows)

Displays information that you can use to diagnose Domain Name System (DNS) infrastructure.

nslookup [-SubCommand ...] [{ComputerToFind [-Server]}]

-SubCommand ... : Specifies one or more nslookup subcommands as a command-line option.
-ComputerToFind : Looks up information for ComputerToFind using the current default DNS name server, if no other server is specified. To look up a computer not in the current DNS domain, append a period to the name.
-Server : Specifies to use this server as the DNS name server. If you omit -Server, the default DNS name server is used.

Nslookup has two modes: interactive and noninteractive.

If you need to look up only a single piece of data, use noninteractive mode. For the first parameter, type the name or IP address of the computer that you want to look up. For the second parameter, type the name or IP address of a DNS name server. If you omit the second argument, nslookup uses the default DNS name server.
If you need to look up more than one piece of data, you can use interactive mode. Type a hyphen (-) for the first parameter and the name or IP address of a DNS name server for the second parameter. Or, omit both parameters and nslookup uses the default DNS name server. Following are some tips about working in interactive mode:
•To interrupt interactive commands at any time, press CTRL+B.
•To exit, type exit.


Nslookup subcommands

No comments:

Recent Posts