Technical data

Configuring and Managing BIND
5.8 Using NSLOOKUP to Query a Name Server
You obtain a list of the options and their default values by entering the
set
all
command immediately after starting an interactive NSLOOKUP session, as
shown in the following example:
$ NSLOOKUP
Default Server: condor.lgk.dec.com
1
Address: 16.99.208.53
> set all
2
Default Server: condor.lgk.dec.com
Address: 16.99.208.53
Set options:
nodebug defname search recurse
3
nod2 novc noignoretc port=53
4
querytype=A
5
class=IN timeout=4 retry=4
root=a.root-servers.net.
domain=xyz.prq.dec.com
6
srchlist=xyz.prq.dec.com
7
>
1
The current default name server. This option is initially set to the name
server configured for your local system (client).
2
The
set all
command displays the current value of each option. When
NSLOOKUP starts, it initializes the options with default values. If you enter
the
set all
command immediately after starting up NSLOOKUP, you see the
default values.
3
Boolean options are those that have an on/off state. Boolean options that
are in the off state are prefixed with the character string NO. For example,
nodebug
.
4
NSLOOKUP displays options that take a value with an equal sign (=) and the
option’s current value. For example,
port=53
.
5
The
querytype
option specifies the type of information returned on a query.
The default query type is A, which returns the host’s IP address.
6
The domain option specifies a default domain. When you query with a host
name, the default domain is appended to the host name before issuing the
query. The
defname
and
search
options affect how NSLOOKUP appends the
default domain name.
7
The
srchlist
option specifies 1 to 6 domains to search by default.
NSLOOKUP sets the
domain
option to the first domain listed in the search
list.
For a description of other
set
options, see Table 5–14.
Table 5–14 Options to the NSLOOKUP
set
Command
Option Function
all
Displays the current values of the options you can set as well as
information about the current default server. For example:
> set all
(continued on next page)
5–40 Configuring and Managing BIND