How to ensure bind stores it’s zone files in plan text instead of raw / binary format

Background

Bind 9.9 stores zone files in raw format. This makes is hard to troubleshoot, or perform scripted bulk operations on many  files.

There is a simple configuration option for Bind that will instantly change all raw format zones to plain text.

To find this option, you would need to find the correct configuration file which could differ between Debian and Redhat derivatives.

On Debian/Ubuntu:

/etc/bind/named.conf includes the file named.conf.options

Edit that file and look for the options { section.

When you’re done your configuration file will look like this:

# cat named.conf.options 
options {
masterfile-format text;
...

Now do service named restart    and automagically all your zones file will be in clear text.

Reference

Share this article

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top