bind: Checking a zone record for errors

Written by Benjamin Cane on 2011-10-06 19:32:39

Bind is the most widely used DNS service software out there, it is the default DNS service for all of the main distributions of Unix/Linux.

While Bind is very popular it is also very tricky sometimes. One of the best ways to see if your edits are good and meet the DNS standards is to run a named-checkzone after editing a zone file and before reloading/restarting bind.

slize:~# named-checkzone bencane.com /etc/bind/master/bencane.com.conf
dns_master_load: /etc/bind/master/bencane.com.conf:18: bencane.com: CNAME and other data
dns_master_load: /etc/bind/master/bencane.com.conf:18: bencane.com: CNAME and other data
dns_master_load: /etc/bind/master/bencane.com.conf:18: bencane.com: CNAME and other data
zone bencane.com/IN: loading from master file /etc/bind/master/bencane.com.conf failed: CNAME and other data

I got this message because of a misconfiguration around a CNAME. After correcting my zone file this is the output.

slize:~# named-checkzone bencane.com /etc/bind/master/bencane.com.confzone bencane.com/IN: loaded serial 1130065411OK

comments powered by Disqus
Picture of Benjamin Cane

Benjamin is a Systems Architect working in the financial services industry focused on platforms that require Continuous Availability. He has been working with Linux and Unix for over 10 years now and has recently published his first book; Red Hat Enterprise Linux Troubleshooting Guide.

Publications

Identify, capture and resolve common issues faced by Red Hat Enterprise Linux administrators using best practices and advanced troubleshooting techniques

What people are saying:
Red Hat Enterprise Linux Troubleshooting Guide may just be all you need in your quest to wear the red hat. - Perry N.
Buy on Amazon

Sponsored by