HP-UX Reference (11i v3 07/02) - 1 User Commands N-Z (vol 2)

n
nslookup(1) nslookup(1)
(BIND 9.3)
The output can create/overwrite (
>) or append to (
>>) filename. When output is directed to
a file, a
# character is printed to standard output for every 50 records received from the
server.
lserver domain
See the server command.
policy Print out the policy read from the
hosts database in the switch configuration file (see
nsswitch.conf(4)). The number of name services specified in the file are shown, as well as
the order and criteria on how the name services are to be used. The four statuses of the
criteria are represented by four characters in square brackets. The order of the status
characters is:
SUCCESS
NOTFOUND
UNAVAIL
TRYAGAIN
The letters used in the four status positions are:
R Return.
C Continue; try next name service, if any.
If no criteria are specified between two sources, then the default actions assigned to the sta-
tuses are [RCCC].
reset Return to using the configured name service switch policy and reset to the original name
servers.
root Change the default server to the server for the root of the domain name space. The
root
command is a synonym for lserver root-host, where root-host is the root server specified
with the set root command. The default root server is ns.nic.ddn.mil
.
server domain
lserver domain
Change the default server to domain. lserver uses the initial server to look up informa-
tion about domain while server uses the current default server. When server is used
while the current name service being pointed to is either NIS or /etc/hosts, then the
switch policy will be overridden until a reset is issued.
set [no]keyword[=value]
Change state information that affects lookups. See The set Command.
view filename
Sort and list the contents of filename, using more (see more(1)). This is useful for viewing
files written by the finger and ls commands.
The set Command
The set command changes state information that affects the lookups. The options can also be entered as
setoption values on the command line. For example, -all.
Syntax
set [no]keyword
The prefix no negates the request. The no action is described in brackets ([...]).
set keyword[=value]
The keyword option is set to value.
Other characters in brackets ([...]) are optional, allowing for keyword abbreviations. Spaces are not permit-
ted.
Options
all Print the current values of the various set options, along with information about the
current default server and host.
cl[ass]=value
Change the query class to one of:
62 Hewlett-Packard Company 3 HP-UX 11i Version 3: February 2007