on or off. This displays
more about what nslookup is doing. The default is nod2.
domain=name
This keyword sets the search list to name.
nosearch
If the lookup request contains at least one period, but
does not end with a trailing period, this keyword appends
the domain names in the domain search list to the request
until an answer is received. The default is search.
port=value
This keyword changes the default TCP/UDP name server port
to value from its default, port 53. The abbreviation for
this keyword is po.
querytype=value | type=value
This keyword changes the type of the information query to
value. The defaults are A and then AAAA; the abbreviations
for these keywords are q and ty.
Please note that it is only possible to specify one query
type. Only the default behavior looks up both when an al‐
ternative is not specified.
norecurse
This keyword tells the name server to query other servers
if it does not have the information. The default is re‐
curse; the abbreviation for this keyword is [no]rec.
ndots=number
This keyword sets the number of dots (label separators) in
a domain that disables searching. Absolute names always
stop searching.
retry=number
This keyword sets the number of retries to number.
timeout=number
This keyword changes the initial timeout interval to wait
for a reply to number, in seconds.
novc This keyword indicates that a virtual circuit should al‐
ways be used when sending requests to the server. novc is
the default.
nofail This keyword tries the next nameserver if a nameserver re‐
sponds with SERVFAIL or a referral (nofail), or terminates
the query (fail) on such a response. The default is no‐
fail.
RETURN VALUES
nslookup returns with an exit status of 1 if any query failed, and 0
otherwise.
IDN SUPPORT
If nslookup has been built with IDN (internationalized domain name) sup‐
port, it can accept and display non-ASCII domain names. nslookup appro‐
priately converts character encoding of a domain name before sending a
request to a DNS server or displaying a reply from the server. To turn
off IDN support, define the IDN_DISABLE environment variable. IDN sup‐
port is disabled if the variable is set when nslookup runs, or when the
standard output is not a tty.
FILES
/etc/resolv.conf
SEE ALSO
dig(1), host(1), named(8).
AUTHOR
Internet Systems Consortium
COPYRIGHT
2024, Internet Systems Consortium
9.18.18‐0ubuntu2.1‐Ubuntu 2023‐08‐04 NSLOOKUP(1)