Technical data

nslookup
Table A–2 (Cont.) Options to the
nslookup set
Command
Keyword Function
srchlist=names
Changes the default domain name to the first name you specify,
and changes the domain search list to all the names you specify.
Specify a maximum of six names separated by slashes (/).
In the following example, the command sets the default domain
to
lcs.MIT.EDU
and changes the search list to the three specified
domains. The command overrides the default domain name and
associated search list for the
set domain
command.
> set srchlist=lcs.MIT.EDU/ai.MIT.EDU/MIT.EDU
The default is the domain name specified in the TCP/IP
configuration database. The abbreviated form of the command
is
srchl
.
[no]defname
Tells
nslookup
to append a default domain name to a lookup
request if the specified DNS name is not fully qualified.
1
The
abbreviated form is
[no]def
.
For example, an
nslookup
query for the host
rainy
becomes
rainy.cc.berkeley.edu
.
[no]search
Tells
nslookup
to append the search list domain names to the
lookup request domain name if the lookup request domain name
is not fully qualified.
1
The default is
search
. The abbreviated
form is
[no]sea
.
1
A fully qualified domain name is a name that ends with a dot (.), as in host.domain.
Examples
The following example shows how to use
nslookup
interactively.
1.
$ nslookup
Default Server: condor.lgk.dec.com
Address: 16.99.208.53
> set all
Default Server: condor.lgk.dec.com
Address: 16.99.208.53
Set options:
nodebug defname search recurse
nod2 novc noignoretc port=53
querytype=A class=IN timeout=4 retry=4
root=a.root-servers.net.
domain=xyz.prq.dec.com
srchlist=xyz.prq.dec.com
A–26 Troubleshooting Utilities Reference