Migrating from BIND to PowerDNS

PowerDNS comes with the tool zone2sql. With some bash scripting, you can save yourself a lot of work. For instance, it's really easy to migrate a bunch of reverse files.

for i in `ls /etc/bind | grep arpa`; do echo $i | awk -F
"db." {'system("zone2sql --gmysql --zone=/your/dir/db."$2"
--zone-name="$2)'} >> reverse.sql; done

This will create a nice .sql to import. Be sure to synchronize after the import if you're using PowerAdmin.

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.