Use the NSLOOKUP command to issue multiple queries in interactive mode. In interactive mode, an initial query is made to the selected name server to verify that the server is accessible. All subsequent interactive queries are sent to that server unless you specify another server using the server or lserver options.
>>-NSLOOKUP--+-----------------+--+-------------------+---------> | .-------------. | +- - server_name----+ | V | | '- - server_address-' '---| -Option |-+-' .----------------. V | >--Enter----| SubCommand |-+----------------------------------->< SubCommand |--+-+-domain_name----+--+----------------+--+-----------------------+-+--Enter--| | '-domain_address-' +-server_name----+ '-+->--+--data_set_name-' | | '-server_address-' '->>-' | +-exit--------------------------------------------------------------+ +-finger--loginname--+-----------------------+----------------------+ | '-+->--+--data_set_name-' | | '->>-' | +-+-help-+----------------------------------------------------------+ | '-?----' | +-ls--+----------------+--domain--+-----------------------+---------+ | +- -a -----------+ '-+->--+--data_set_name-' | | +- -d------------+ '->>-' | | +- -h------------+ | | +- -s------------+ | | '- -t--+-------+-' | | '- type-' | +-lserver--+-name----+----------------------------------------------+ | '-address-' | +-root--------------------------------------------------------------+ +-server--+-name----+-----------------------------------------------+ | '-address-' | +-set--| Option |---------------------------------------------------+ '-view--data_set_name-----------------------------------------------'
Queries processed by NSLOOKUP that specify an address can give unexpected results. If the current query type is address (A) or domain-name pointer (PTR), NSLOOKUP generates a PTR type query for the specified address in the in-addr.arpa domain. This returns PTR records which define the host name for the specified address. If the current query type is neither of these two types, a query is performed using the current query type, with the domain name specified as the address given.
Text that does not conform to the defined options and follows the preceding syntax is treated as a domain query. NSLOOKUP does not issue a query for a domain name if the name is unqualified and is the same as one of the defined options.
Output can be placed in a data set for later viewing by specifying data_set_name. The > data_set_name option places the output in data_set_name and overwrites the contents, if any, of the data set. The >> data_set_name option places the output in data_set_name and appends it to the contents, if any, of the data set. There must be at least one space before and after the > or >> symbol.
If the domain name starts with an underscore (_), you must prefix the domain name with the escape character (\).
An error occurs if the preceding subcommand was not a successful address query or finger operation. If the current host is not defined, querying the name server defines that name server to be the current host for a subsequent finger operation.
The finger option expects that the finger server is operating on the node found. An error occurs if the server is not operating or the node cannot be reached.
If type is ns, up to 24 characters of the returned DNS name is displayed. The UNIX onslookup/nslookup command can be used to display the entire DNS name.
See the z/OS Communications Server: IP Configuration Reference for detailed information about valid query types.
The ls command expects the domain name specified in domain to be a zone. If the domain name specified refers to a host, an error message is printed and no information is given. This command should create a virtual circuit (TCP connection) with the current name server to service the request. An error message is printed if the virtual circuit cannot be established.
A # symbol is displayed at the terminal as every 50 lines are written to the data set to indicate the command is still executing.
An error occurs if the domain name cannot be mapped to an IP address. This option does not ensure that a name server can be reached at the node specified; it simply changes a local variable storing the address of the default name server.
An error occurs if the name of the root server cannot be mapped to an IP address. This option does not ensure that a name server can be reached at the node specified; it simply changes a local variable storing the address of the default name server.
An error occurs if the domain name cannot be mapped to an IP address. This option does not ensure that a name server can be reached at the address; it simply changes a local variable storing the address of the default name server.
toolah wurrup.fourex.oz
queries
the name server on wurrup.fourex.oz for information
about the node toolah. When specifying domain names
that include periods, the trailing period (indicating a fully qualified
domain name) is optional. NSLOOKUP deletes the trailing period if
it is present. If you are specifying a root domain, the domain name
must have two trailing periods. For example, specify mynode.. when
the node mynode is in the root domain.