CL Command Reference - STRDNSQRY
CL Command List > STRDNSQRY Reference
Description:
Start DNS Query (STRDNSQRY), and its alias NSLOOKUP, start the NSLookup (Name Server Lookup) tool.
NSLookup is an interactive query tool that allows you to retrieve information from, or test the response of a DNS server. You can verify that a DNS server is responding correctly before you configure your system to use it. You can also retrieve DNS information about hosts, domains, and DNS servers.
Note: NSLookup asks for (queries) information from DNS servers. To begin a NSLookup query session, an active DNS server must be designated the ¡¯default¡¯ server for the query session. The default server is the DNS server that NSLookup sends all queries to unless you tell it otherwise. All references in the following help to ¡¯the default server¡¯, or ¡¯the default DNS server¡¯, refer only to the default DNS server for the current NSLookup query session.
NSLookup retrieves information from DNS servers. It needs an active DNS server to send its queries to. If you do not specify a DNS server with DMNAMSVR when you start the tool, it will attempt to set one of the following as its default DNS server for the session: 1. The DNS server your system is configured to use, or 2. The DNS server that is running on your local system.
If neither of these conditions exist, NSLookup will not be able to retrieve any information until you specify a DNS server to query. DMNNAMSVR allows you to start the query session and set the DNS server of your choice as the default server for the session.
There are two parameters for this command:
1. HOSTNAME
2. DMNNAMSVR
These parameters are used with STRDNSQRY to specify a default DNS server for the query session or, to request information about a specific host on session start up. Help for these parameters follows the list of session subcommands.
Examples:
STRDNSQRY HOSTNAME(¡¯9.12.234.14¡¯) DMNNAMSVR(*CFG)
This command starts a DNS query using the host located at IP address 9.12.234.14 and the DNS server that is currently designated for use by this system.