Ask Your Question

How to debug bind conf and zone files?

asked 2013-03-23 17:00:48 -0500

Ramy Al Zuhouri gravatar image

updated 2013-03-23 17:01:32 -0500

I am using bind 9.2 with fedora 17, trying to set up a DNS server. I've written 3 zone files and edited the resolv.conf and named.conf files. It seems like I've done extactly as the fedora guide says.

But if I try:

$ sudo systemctl start named.service

It says that the job failed. I also tried:

$ sudo systemctl status named.service

It gives an error, but it's not very indicative (it says status=failed, code=-1).

I would like to know how to debug the files, if there's a tool that says exactly the error that is causing named.service to don't start.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2013-03-24 08:20:45 -0500

Akshay gravatar image

You can use log files after starting/restarting bind to see error messages

tail –f /var/log/message

Check config file for errors

check config file syntax and /etc/named.conf file using following utilities. named-checkconf command is named (BIND) configuration file syntax checking tool.

named-checkconf /etc/named.conf

Check zone file syntax for errors

named-checkzone localhost /var/named/<filename>


named-checkzone <hostname> /var/named/<filename>
edit flag offensive delete link more

Question Tools


Asked: 2013-03-23 17:00:48 -0500

Seen: 45,778 times

Last updated: Mar 24 '13