NSLOOKUP: Query a name server in command mode

Use the NSLOOKUP command to specify an individual query in command mode.

Format

Read syntax diagramSkip visual syntax diagram
>>-NSLOOKUP--+-----------------+--+-domain_name----+------------>
             | .-------------. |  '-domain_address-'   
             | V             | |                       
             '---| -Option |-+-'                       

>--+----------------+------------------------------------------><
   +-server_name----+   
   '-server_address-'   

Parameters

-Option
For a description of the NSLOOKUP options, see NSLOOKUP options.
domain_name
Queries the name server for information about the current query type of domain_name. The default query type is A (address query).

If the domain name starts with an underscore (_), you must prefix the domain name with the escape character (\).

domain_address
Reverses the components of the address and generates a pointer type (PTR) query to the name server for the in-addr.arpa domain mapping of the address to a domain name.
server_name
Directs the default name server to map server_name to an IP address and then use the name server at that IP address.
server_address
Specifies the IP address of the name server to be queried other than the default name server. A query for the address in the in-addr.arpa domain is initially made to the default name server to map the IP address to a domain name for the server.

Usage

The parameters and subcommands of NSLOOKUP are case sensitive and must be entered in lowercase. Parameter values and domain names are not case sensitive.

If the resolver trace is active, the trace will show the initial values before the NSLOOKUP command line options are processed.

Context