bind zone in raw format

 

*binary means raw format , that is a .db format

Bind9 daemon saves zones files in binary format, it’s bad when you want to read or export via a rsync to other service / server to deply a failover or backup , so to modify it to save in text format the zone there are 2 simple configuration modification you can apply  .

1.Global configuration ( all zone files will be setup as raw format ) :

modify the named.conf.options ( for debian , other distros simply look for Options ) and add this line :

Masterfile-Format Text;

2.Per Zone configuration , as mentioned above , you can put the master-format text; option in your zone define ( slave or master )

for bashmonkeys , that like to go mad for nothing exists a command to live convert binary file to raw data , the command is :

named-compilezone -f raw -F text -o outputzone.DNS.text domainName-inthezoneFile.TLD domainName-file-inthezoneFile.TLD

have fun

 

Torna in alto