bind: Checking a zone record for errors

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 /etc/bind/master/
dns_master_load: /etc/bind/master/ CNAME and other data
dns_master_load: /etc/bind/master/ CNAME and other data
dns_master_load: /etc/bind/master/ CNAME and other data
zone loading from master file /etc/bind/master/ 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 /etc/bind/master/ loaded serial 1130065411OK

About Benjamin

Benjamin is a Infrastructure and Software Engineer. On this blog he writes about Linux, Docker, Programming as well as other Systems topics.

Learn more about Linux

If you liked this article, check out Benjamin's book: Red Hat Enterprise Linux Troubleshooting Guide. Where you can learn a lot more about troubleshooting Linux systems. This book is filled with tips and techniques he has learned over years of managing mission critical systems.