Checking named.conf and DNS zone files for syntax errors such as dots, spaces, and coma’s etc is a tedious job to find and pinpoint them. Its very difficult to find where is the error in named.conf file. So for that we can use

named-checkconf command to help us..


#named-checkconf configurationfileloc 

Example :

#named-checkconf /var/named/chroot/etc/named.conf 

When you execute above command it will show you the errors if any according to line number, so it’s very much easy to check where we did the mistake.

For Checking Zone files(both forword and reverse)there is one more command


Syntax :

#named-checkzone domainname zonefileloc 

Example :

#named-checkzone /var/named/chroot/var/named/example.frd 

where example.frd is my forword zone file for my domain We hope this will help you in resolving your DNS server issues up to some extent.