Troubleshoot Linux / UNIX bind dns server zone problems with named-checkzone tool

by on September 21, 2007 · 8 comments· LAST UPDATED September 21, 2007

in , ,

Q. How do I check my domain zone file for error and validity the same under BIND DNS Server version 9?

A. You need to use named- checkzone command as zone file validity checking tool. It is useful for checking zone files before configuring them into a name server.

named-checkzone command syntax

named-checkzone {zonename} {filename}

  • zonename : The domain name of the zone being checked.
  • filename : The name of the zone file.

How do I check my zone file configuration for errors?

Use named-checkzone to check the zone files as follows:
named-checkzone /var/named/


If you see "OK" as result, the zone file is properly configured and you can restart bind name server.

Tweet itFacebook itG+ itDownload PDF versionFound an error/typo on this page?

{ 8 comments… read them below or add one }

1 trupti October 18, 2007 at 5:05 am

how to configure bind in enterprise linux


2 Satish July 23, 2008 at 6:48 am

Tech. Team in my LINUX server DNS server is not configure properly and the package bind*cachi* is not install,pls how to solve that problem,rewmaining theis all package install properly.Pls send me the reply asap.

Satish Patnaik


3 linuxss August 26, 2008 at 8:53 am

Dear Satish,

You copy or download bind package from internet which are not install in your system


4 ashish February 26, 2010 at 10:10 am

hello sir
plz tell me
sir i have one computer and i have to configure dns server in linux
when i configure dns server in linux then get some error
so pz tell me how to configure dns server properly


5 Bodhik June 18, 2010 at 2:21 am

Can we use named-checkzone for rev zone files, i.e. 100.100.100.rev?


6 Erik April 27, 2011 at 9:40 am

Yes we can, named-checkzone is used for both zone file and reverse zone file. It does same checking like bind does when starting.


7 Siva November 22, 2012 at 2:16 pm

How Can I test the Reverse look up zone ??


8 Arvind April 11, 2015 at 7:32 pm

In order to comment out a line in DNS zone file, will # work or only ; must be used.


Leave a Comment

Tagged as: , , , , , , , ,

Previous Faq:

Next Faq: