Bind 9.9 CentOS 7 binary slave DNS zone files

With the development of the BIND 9.9 branch, zone file storage for slaved zones has been changed to expect the raw zone format by default.  BIND administrators testing 9.9 or preparing for migration from an earlier version have asked how to deal with this format change.  Several options are available.

Rename and Retransfer:  A BIND 9.9 slave server which encounters a zone file it cannot read (for example, because the contents are stored in a format other than what the server expects) will rename the unreadable zone file and attempt to retransfer the zone from the master.

Manual Conversion:  The named-compilezone utility, which is part of the BIND distribution, can be used to convert zones from text to raw and from raw to text.

# convert raw zone file “”, containing data for zone, to text-format zone file “”
named-compilezone -f raw -F text -o

# convert text format zone file “”, containing data for zone, to raw zone file “”
named-compilezone -f text -F raw -o


Leave a Reply

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