HP-UX Reference (11i v2 04/09) - 1 User Commands N-Z (vol 2)

n
nslookup(1) nslookup(1)
server domain
lserver domain
Change the default server to domain. lserver
uses the initial server to look up infor-
mation 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.
root Changes the default server to the server for the root of the domain name space.
Currently, the host
ns.nic.ddn.mil
is used (this command is a synonym for
lserverns.nic.ddn.mil). The name of the root server can be changed with the
set
root command.
policy Prints out the policy read from the switch configuration file. The number of name ser-
vices 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 the four posi-
tions within the square brackets. The order of the statuses are:
SUCCESS, NOTFOUND,
UNAVAIL, and TRYAGAIN. The two actions of the criteria are represented by the two
possible letters used in the four status positions:
R for return and C for continue.
However, if no criteria is specified between two sources, then the default actions are
assigned to the statuses:
SUCCESS= return
NOTFOUND= continue
UNAVAIL= continue
TRYAGAIN= continue
finger [name][> filename]
finger [name][>> filename]
Connects with the finger server on the current host. The current host is defined when a
previous lookup for a host was successful and returned address information (see the set
querytype=A command). name is optional. > and >> can be used to redirect output
in the usual manner.
ls [lsoption] domain [> filename]
ls [lsoption] domain [>> filename]
List the information available for domain, optionally creating or appending to filename.
The default output contains host names and their Internet addresses. lsoption can be
one of the following:
-t querytype lists all records of the specified type (see querytype below).
-a lists aliases of hosts in the domain (synonym for -t CNAME
).
-d lists all records for the domain (synonym for -t ANY).
-h lists CPU and operating system information for the domain (synonym for
-t HINFO).
-s lists well-known services of hosts in the domain (synonym for -t WKS).
When output is directed to a file,
# characters are printed for every 50 records received
from the server.
view filename Sorts and lists the output of previous ls command(s) using more (see more(1)).
help
? Prints a brief summary of commands.
exit Exits the program.
reset Returns to the use of the configured name service switch policy and resets to use the ori-
ginal nameservers.
set keyword[=value]
This command is used to change state information that affects the lookups. Valid key-
words are:
all Prints the current values of the various set options. Information about
the current default server and host is also printed.
HP-UX 11i Version 2: September 2004 2 Hewlett-Packard Company Section 1685