Installing and Administering Internet Services

Chapter 3 107
Configuring and Administering the BIND Name Service
Troubleshooting the BIND Name Server
nslookup
Use nslookup and set the name server to the master the
secondary is trying to load from.
$ nslookup
> server server_name or IP_address
> ls domain
The ls command initiates a zone transfer. If the error message is
No response from server, then no server is running on the
remote host. If the ls command succeeds, the secondary should be
able to load the data from this server.
7. Incorrect subdomain delegation may be caused by missing or
incorrect NS or A records in the parent server for the subdomain.
nslookup
Use nslookup to query the parent server for delegation
information. Execute the following:
$ nslookup
> server parent_server_name or IP_address
> set type=ns
> subdomain_name
This should show you the NS and A records for the subdomain
servers, as seen in the example below. In the example, the
subdomain is delegated correctly.
hershey.div.inc.com:rootk> nslookup
Default Name Server: hershey.div.inc.com
Addresses: 15.19.14.100, 15.19.15.100
hershey is the default name server for this host.
> server eduardo.doc.inc.com.
Default Name Server: eduardo.doc.inc.com
Address: 15.19.11.2
Set the default name server to be this subdomain’s parent server,
eduardo.
> set type=ns
> div.inc.com
Name Server: eduardo.doc.inc.com
Address: 15.19.11.2
Set query type to ns (nameserver). Look up the div.inc.com
domain.
Non-authoritative answer:
div.inc.com nameserver = walleye.div.inc.com
div.inc.com nameserver = friday.div.inc.com