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; doneThis will create a nice .sql to import. Be sure to synchronize after the import if you're using PowerAdmin.
Tweet
Comments
Post new comment