Bind slave zone convert binary to text format

Bind9

BIND 9.9.x uses default binary file format for slave zone files in order to improve bind performance. Refer to the solution section to change this behavior.


Topic

  • How to configure bind to use text file format for slave zone file?
  • How replace binary file format for slave zone with bind9?
  • Configure Bind to use text format to store slave zone data

apt

  • Linux

Solution



Add the following line in the slave zone section to inform bind to use text file format to store salve zone data.

masterfile-format text;


Example

        zone "example.com" in {
                type slave;
                notify no;
                file "data/example.com";
                masterfile-format text;
                masters { 192.168.x.x; };
        };


Once suggested configuration has been added, restart named service and check.

Note: If binary slave zone data files are already present, delete them before restarting named service.

You May Also Like

avatar

About the Author: TekFik

TekFik is a technical blogging site helps techies and engineers to solve their day to day issues and also allows everyone to share knowledge and feedback. Please feel free to contact us at tekfik.rd@gmail.com if there is anything.

Leave a Reply

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