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.
When you execute above command it will show you the errors if any according to line number, so its very much easy to check where we did the mistake.
For Checking Zone files(both forword and reverse)there is one more command
#named-checkzone domainname zonefileloc
#named-checkzone example.com /var/named/chroot/var/named/example.frd
where example.frd is my forword zone file for my domain example.com. We hope this will help you in resolving your DNS server issues up to some extent.