Technical data

Configuring and Managing BIND
5.8 Using NSLOOKUP to Query a Name Server
Non-authoritative answer:
microsoft.com nameserver = dns2.microsoft.com
microsoft.com nameserver = dns1.moswest.msn.net
microsoft.com nameserver = dns2.moswest.msn.net
microsoft.com nameserver = dns3.nwnet.net
microsoft.com nameserver = dns4.nwnet.net
microsoft.com nameserver = dns1.microsoft.com
Authoritative answers can be found from:
dns2.microsoft.com internet address = 131.107.1.240
dns3.nwnet.net internet address = 192.220.250.7
dns4.nwnet.net internet address = 192.220.251.7
dns1.microsoft.com internet address = 131.107.1.7
>
5.8.6 Changing the Default Server
If you want to use another name server as your default server, use the
server
command.
$ NSLOOKUP
Default Server: condor.klg.sea.com
Address: 16.99.208.53
> server ns01.koz.sea.com
Default Server: ns01.koz.sea.com
Address: 16.99.9.20
If for some reason the default server is not responding, you can always use the
lserver
command to change the default server. The
lserver
command uses the
initial default name server to look up the IP address of the new server.
> lserver collie.klg.sea.com
Default Server: collie.klg.sea.com
Address: 16.99.208.10
Or, if you already know the IP address of the new server, you can use the
server
command to reset the default server.
>server 16.99.208.10
> server 16.99.99.226
Default Server: beagel.zok.sea.com
Address: 16.99.99.226
5.8.7 Listing Domain Information
The
ls
command lists information about a domain. This command is useful for:
Determining the number of hosts within a domain
Host names and their IP addresses
Troubleshooting DNS problems
Table 5–15 describes options to the
ls
command.
Configuring and Managing BIND 5–45