Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Check your dns zone and configuration files  (Read 2192 times)

0 Members and 1 Guest are viewing this topic.

Vinil

  • Guest
Check your dns zone and configuration files
« on: November 25, 2013, 01:42:15 pm »
We can check a DNS zone file configuration for errors. The BIND dns server provides a good tool to check the validity of a zone file. named-checkzone is such a tool that can be made use of.


named-checkzone command syntax

Quote
named-checkzone {zonename} {filename}

Where,

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


For example: To check the dns zone of your domain

Code: [Select]
[root@server ~]# named-checkzone yourcomain.com /var/named/zone.yourdomain.com

Output
---------

zone yourdomain.com/IN: loaded serial xxxxxxxxx
OK


If you see "OK" as result, the zone file is properly configured.



Check your BIND – DNS Server configuration file for errors


You can use a tool called named- checkconf to check BIND dns server configuration file syntax. This is excellent tool that checks the syntax of a named configuration file. It can check for syntax errors or typographical errors but cannot check for wrong MX / A address which is given.


To check bind configuration for errors, run the following command:-


Quote
# named-checkconf /etc/named.conf


If there is no output, the configuration is considered correct and If there is an error it will be displayed on the screen.



Give a try when you face with dns related issues.  :)