DNS Server Syntax Checking


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

  • Like the post? Please Subscribe to free RSS feed to get updates
  • Related Posts by Categories



    0 comments:

    Archive

    Translate this page

     

    The Linux Juggernaut | Copyright 2006-2009 Surendra Kumar Anne | Surendra's Home Page | Give us feedback how we are doing, Click here