Archive:Docs/Drafts/AdministrationGuide/Servers/DNSBIND/BINDCheckConfiguration

= DNS and BIND =

Checking Configuration Files
The  directory contains two useful tools:   and. These tools are to check whether your configuration files are valid.

Checking /etc/named.conf
Run the  command to check whether your named.conf file is valid. If no results are returned, the configuration should be correct:

/usr/local/sbin/named-checkconf /etc/named.conf

Replace  with the location of your named.conf file.

Checking Zone Database Files
The following is an example of checking the db.testdomain.com zone database file using the named-checkzone command:

/usr/local/sbin/named-checkzone testdomain.com /etc/bind/db.testdomain.com

The first argument is the zone name as it appears in named.conf, in this case testdomain.com. The last argument is the location of the zone database file for testdomain.com, in this case /etc/bind/db.testdomain.com. The output of the named-checkzone command should be similar to the following:

zone testdomain.com/IN: loaded serial 2007031008 OK

The serial number,, will be different in each case.

{| border="1"
 * Administration Guide - TOC || Previous Page - Configuring and Using the rndc tool || Next Page - Starting, Stopping, and Testing BIND
 * Administration Guide - TOC || Previous Page - Configuring and Using the rndc tool || Next Page - Starting, Stopping, and Testing BIND