Technical data

Configuring and Managing BIND
5.8 Using NSLOOKUP to Query a Name Server
Table 5–15 Options to the NSLOOKUP
ls
Command
Option Function
-a
Lists aliases of hosts in the domain (CNAME entries).
-d
Lists all the entries in the domain.
-h
Lists CPU and operating system information for the domain (HINFO
entries).
-m
Lists mail exchange (MX) entries in the domain.
-s
Lists well-known services (WKS) in the domain.
-t
Lists a specified entry type.
The following example shows the use of the
ls
command to obtain address records
for all hosts within a zone.
> ls -t a lgk.sea.com
[condor.lgk.sea.com]
@ 12H IN A 16.99.208.208
dhcp-253 12H IN A 16.99.208.253
ucxv4a 12H IN A 16.99.208.129
beavis 12H IN A 16.99.208.90
boxmor 12H IN A 16.99.208.30
kempo 12H IN A 16.99.208.47
pacnet 12H IN A 16.99.208.84
kwai 12H IN A 16.99.208.63
alxica 12H IN A 16.99.9.37
ppponvms 12H IN A 16.99.208.104
a71kt 12H IN A 16.99.208.142
peteathome 12H IN A 16.99.208.101
larisa 12H IN A 16.99.208.49
pigdog 12H IN A 16.99.208.140
ntruder 12H IN A 16.99.208.110
In the following example, the
ls
command displays alias records for hosts within
the
lgk.sea.com
domain.
> ls -a lgk.sea.com
[condor.lgk.sea.com]
$ORIGIN LGK.SEA.COM.
celics 12H IN CNAME celtics
news 12H IN CNAME nntpd.KLG.SEA.COM.
tiger 12H IN CNAME ntruder
console 12H IN CNAME bblts.KLG.SEA.COM.
deebug 12H IN CNAME dot
ayla 12H IN CNAME ayla.KLG.SEA.COM.
cscibm 12H IN CNAME cscibm.KLG.SEA.COM.
>
Using the
-m
option obtains the MX records for hosts within the
lgk.sea.com
domain, as shown in the following example.
5–46 Configuring and Managing BIND