Technical data

Configuring and Managing BIND
5.8 Using NSLOOKUP to Query a Name Server
Table 5–14 (Cont.) Options to the NSLOOKUP
set
Command
Option Function
class=value
Changes the query class to one of the following:
IN The Internet class (default)
CHAOS The Chaos class
ANY Wildcard
The class specifies the protocol group of the information. You can use
the abbreviated form of the keyword
cl
.
The following command tells NSLOOKUP to resolve both
internet
and
chaos
class queries (you can enter INTERNET and CHAOS):
> set class=ANY
querytype
Specifies the type of information you want. For example:
> set querytype=A
> set querytype=ANY
Valid types include:
SOA Start of authority. Marks the beginning of a zone’s data and
defines parameters that affect the entire zone.
NS Name server. Identifies a domain’s name server.
A Address. Maps a host name to an address.
ANY Defines all available resource records for a given name.
PTR Pointer. Maps an address to a host name.
MX Identifies where to deliver mail for a given domain.
CNAME Defines an alias host name.
HINFO Host information. Describes a host’s hardware and
operating system.
WKS Well-known service. Advertises network services.
[no]debug
Turns on debugging (default is
nodebug
). NSLOOKUP displays both
detailed information about the packet sent to the server and the
answer. You can use the abbreviations
nodeb
and
deb
. For example:
> set debug
[no]d2
Returns all-inclusive debugging information (default is
nod2
). Displays
all the fields of every packet. For example:
> set d2
recurse
Tells the BIND server to contact other servers if it does not have the
information you want. The servers carry out a complete (recursive)
resolution for each query. For example:
> set recurse
retry
Number of times that NSLOOKUP attempts to contact a BIND server
if repeated tries fail. For example:
> set retry=8
(continued on next page)
Configuring and Managing BIND 5–41