Checking named.conf file syntax once you have updated the named.conf file some times server will not start/run because some syntax errors like spaces, dots etc. Unnaccearsly in the named.conf file. Its very diffucult to find where is the error in named.conf files. So for that we can use
named-checkconf #named-checkconf configurationfileloc
Example : #named-checkconf /var/named/chroot/etc/named.conf
When you execute above command it should show errors if any according to line number, so its very much easy to check where we did the mistake. Checking Zone file(both forword and reverse)
Syntax : #named-checkzone domainname zonefileloc
Example : #named-checkzone example.com /var/named/chroot/var/named/example.frd example.frd is my forword zone file for my domain example.com
0 comments:
Post a Comment