The z/OS UNIX nslookup is
a program used to query Internet domain name servers. The nslookup command
has two modes: interactive and non-interactive. Use the interactive
mode to query name servers for information about various hosts and
domains. Non-interactive mode is used to display just the name and
requested information for a host or domain.
Rule: The onslookup/nslookup command
does not use resolver caching.
The
z/OS UNIX onslookup/
nslookup command
enables you to perform the following tasks from the
z/OS UNIX environment:
- Identify the location of name servers
- Examine the contents of a name server database
- Establish the accessibility of name servers
See nslookup versions for
listings of valid start options and subcommands for the different
versions of nslookup.
To display a list of options, enter the following from
the command line:
onslookup -h
Note: - The onslookup command is a synonym for the nslookup command
in the z/OS UNIX shell.
The nslookup command syntax is the same as that
for the onslookup command. The nslookup command
can be run from the z/OS UNIX shell
or from TSO; however, only the legacy TSO version of NSLOOKUP is available
from TSO.
- The onslookup messages are not documented in
the z/OS® Communications
Server library.
Therefore, onslookup command messages do not give
a message ID for debugging.
The onslookup command has two modes
of operation: interactive mode and command mode. In both modes, the
address of the default name server comes from the resolver configuration
file.
In the following example, the default domain is raleigh.ibm.com,
and the default name server is at 9.37.34.149. If that name server
fails to respond, the one at 9.37.34.7 is used.
domain raleigh.ibm.com
nameserver 9.37.34.149
nameserver 9.37.34.7