Migrate from BIND to PowerDNS

PDF

To migrate from Bind to PowerDNS you have to convert and import the Bind zone files into the PowerDNS database. Together with the PowerDNS package the program zone2sql is installed. zone2sql parses the Bind config and zone files in to a SQL format which can be imported into your database.

In this example I will convert the Bind zones to a MySQL dump, but zone2sql can also be used to convert the zones to an Oracle or PostgreSQL sql file. I assume you already setup PowerDNS with the MySQL backend as published here.

Now let's convert the Bind zones to an SQL file:
zone2sql --gpgsql --named-conf=/var/named/chroot/etc/named.conf > bindzones.sql
Next import the sql file into the powerdns database:
mysql -u USERNAME -p powerdns < bindzones.sql
Tags:
 

Please login first before adding a comment.

Search






You are here: Home Howtos and FAQs DNS Migrate from BIND to PowerDNS