OnWorks Linux and Windows Online WorkStations

Logo

Free Hosting Online for WorkStations

< Previous | Contents | Next >

3.1.4. named-checkzone


A great way to test your zone files is by using the named-checkzone utility installed with the bind9 package. This utility allows you to make sure the configuration is correct before restarting BIND9 and making the changes live.

• To test our example Forward zone file enter the following from a command prompt:


named-checkzone example.com /etc/bind/db.example.com


If everything is configured correctly you should see output similar to:


zone example.com/IN: loaded serial 6 OK

• Similarly, to test the Reverse zone file enter the following:


named-checkzone 1.168.192.in-addr.arpa /etc/bind/db.192


The output should be similar to:


zone 1.168.192.in-addr.arpa/IN: loaded serial 3 OK


image

The Serial Number of your zone file will probably be different.


Top OS Cloud Computing at OnWorks: