HP-UX Reference (11i v2 03/08) - 1 User Commands N-Z (vol 2)
n
nslookup(1) nslookup(1)
information. (Default = recurse)
ret[ry]=number
Set the number of retries to number. When a reply to a request is not
received within a certain amount of time (changed with
set timeout),
the timeout period is doubled and the request is resent. The retry value
controls how many times a request is resent before giving up. (Default =
4)
ro[ot]=host Change the name of the root server to host. This affects the
root com-
mand. (Default =
ns.nic.ddn.mil
)
[no]sea[rch] If the lookup request contains at least one period but doesn’t end with a
trailing period, append the domain names in the domain search list to
the request until an answer is received. See hostname (5). (Default =
search)
srchl[ist]=name1/name2/
...
Change the default domain name to name1 and the domain search list to
name1, name2, etc. A maximum of 6 names separated by slashes (
/ )
can be specified. For example,
set srchlist=lcs.MIT.EDU/ai.MIT.EDU/MIT.EDU
sets the domain to lcs.MIT.EDU and the search list to the three
names. This command overrides the default domain name and search
list of the set domain command. Use the set all command to
display the list. (Default = value based on hostname,
/etc/resolv.conf or
LOCALDOMAIN)
[no]swtr[ace] When set, this flag causes
nslookup to print out information about the
sources used for resolving a name or an address lookup. This flag traces
the behavior generated by the switch policy. (Default = noswtrace)
t[imeout]=number
Change the initial timeout interval for waiting for a reply to number
seconds. Each retry doubles the timeout period. (Default = 5 seconds)
[
no]v[c] Always use a virtual circuit when sending requests to the server.
(Default = novc)
The default behaviour of
nslookup in the absence of hosts entry in the /etc/nsswitch.conf
file
or in the absence of the
/etc/nsswitch.conf
file is as follows:
hosts: dns nis files
DIAGNOSTICS
If the lookup request was not successful, an error message is printed. Possible errors are:
Time-out
The server did not respond to a request after a certain amount of time (changed with set
timeout=value) and a certain number of retries (changed with set retry=value).
No response from server
No name server is running on the server machine.
No records
The server does not have resource records of the current query type for the host, although the
host name is valid. The query type is specified with the set querytype command.
Non-existent domain
The host or domain name does not exist.
Connection refused
Network is unreachable
The connection to the name server could not be made at the present time.
Server failure
The name server found an internal inconsistency in its database and could not return a valid
answer.
HP-UX 11i Version 2: August 2003 − 4 − Hewlett-Packard Company Section 1−−643