Technical data

Configuring and Managing BIND
5.8 Using NSLOOKUP to Query a Name Server
Table 5–13 NSLOOKUP Commands
Command Function
host [server] Looks up information using the current default
server or the server you specify. Enter the name
of the host for which you need an IP address.
For example, the following command searches for
www.whitehouse.gov
using the default server:
> www.whitehouse.gov
Server: condor.lgk.dec.com
Address: 16.99.208.53
Name: www.whitehouse.gov
Addresses: 198.137.240.92, 198.137.240.91
The following command uses the server with
IP address 128.45.45.40 to look up the host
snowy.frozen.weather.com
:
> snowy.frozen.weather.com 128.45.45.40
server domain
Changes the default server to the domain you specify.
The following command changes the default server
using the current default server to look up information
for the new default server, 128.45.35.40:
> server 128.45.35.40
lserver domain
Changes the default server. The following command
changes the default server using the initial default
server to find information about 128.45.35.40:
> lserver 128.45.35.40
root
Changes the default server to the server specified by
the root option.
> root
ls
Lists information about hosts in the domain you
specify. The default output contains host names and
their IP addresses. The options for
ls
are listed in
Table 5–15.
The following example redirects the output from the
screen to the file
NSLOOKUP.temp
in the current
directory.
> ls -a frozen.weather.com > NSLOOKUP.temp
help
or
?
Displays a summary of the available commands.
exit
Exits NSLOOKUP.
set
Selects the type of information that NSLOOKUP
displays. Table 5–14 lists the available options.
5.8.4 Default Option Values
NSLOOKUP has options that influence the type of information you receive from
a query and the way NSLOOKUP behaves. Some of the options take a value and
others are Boolean options. The options have default values and can be changed
by using the
set
command.
Configuring and Managing BIND 5–39