Change the options that affect lookup operations.
The current options are displayed with `set all' or `set ALL'.
FORMAT:
set keyword[=value]
OPTIONS:
all, debug, d2, defname, recurse, vc, domain, search, srchlist,
root, retry, timeout, querytype, type, class, ignoretc
1 – all
Displays the current values of the nslookup options and
information about the current default server.
set ALL also prints the server state information.
FORMAT:
set all or set ALL
2 – debug
Turns on debugging mode. Verbose information is printed
about the packet sent to the server and the resulting answer.
FORMAT:
set [no]debug
DEFAULT:
set nodebug
3 – d2
Turns on exhaustive debugging mode.
FORMAT:
set [no]d2
DEFAULT:
set nod2
4 – defname
Appends the default domain name to every lookup.
FORMAT:
set [no]defname
DEFAULT:
set nodefname
5 – recurse
Tells the BIND/Hesiod server to query other servers if it
does not have the information.
FORMAT:
set [no]recurse
DEFAULT:
set recurse
6 – vc
Uses a TCP connection when sending requests to the server.
FORMAT:
set [no]vc
DEFAULT:
set novc
7 – domain
Changes the default domain to the domain name specified.
The default domain name is appended to all lookup
requests if the defname option is set.
FORMAT:
set domain=name
DEFAULT:
set domain=<domain of the current node>
8 – search
If a lookup request contains at least one period but doesn't
end with a trailing period, append the domain manes in the
domain search list until an answer is received.
FORMAT:
set [no]search
DEFAULT:
set search
9 – srchlist
Changes the set of domains that are searched if a name is
not found in the default domain.
FORMAT:
set srchlist=N1[/N2[/N3[/N4[/N5[/N6]]]]]
The default search list is the domain of the current node, and
up to two successive parent domains up to the root.
10 – root
Changes the name of the root server to the host name
specified. This affects the root command.
FORMAT:
set root=host
DEFAULT:
set root=ns.nic.ddn.mil
11 – retry
Sets the number of retries to the number specified.
If a reply to a request is not received within a certain
amount of time (changed with set timeout), the request is
resent. The retry value controls how many times a request
is to be resent before giving up.
FORMAT:
set retry=number
DEFAULT:
set retry=2
12 – timeout
Changes the time-out interval for waiting for a reply to
the number specified (in seconds).
FORMAT:
set timeout=number
DEFAULT:
set timeout=10
13 – querytype
Changes the type of information returned from a query.
FORMAT:
set querytype=value
Allowed values are:
ANY Matches any type
A Internet address
AAAA IPv6 internet address
CNAME Canonical name for an alias
HINFO Host information
MX Mail routing information
PX X.400 mail mapping
NAPTR Naming authority pointer
NS Authoritative name server
NSAP NSAP address
PTR Domain name pointer
SOA Start of authority zone
SRV Server Selection
TXT Text strings
WKS A well known service
DEFAULT:
set querytype=A
14 – type
A synonym for querytype.
15 – class
Changes the class of information returned from a query.
FORMAT:
set class=value
Allowed values are:
IN Internet
HS Hesiod
ANY any
DEFAULT:
set class=IN
16 – ignoretc
Ignore packet truncation errors.
FORMAT:
set [no]ignoretc
DEFAULT:
set noignoretc