I wrote an HTTP API that allows interaction with powerdns records. One of the things it does is accept a bind zone and converts it to powerdns. This is accomplished using the --bare option.
Bare is a much more friendly format to work with when you don't want to actually insert records. This allows our API to look at the data and apply validations before inserting them into the tables.
import zone2json, by Aki Tuomi. Closes #509
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2997 d19b8d6e-7fed-0310-83ef-9ca221ded41b
Attachment '' (20120803_zone2json.patch) https://gist.github.com/5466763
Attachment 'upgrade for latest head' (20121206_zone2json.patch) https://gist.github.com/5466764
Attachment 'upgrade for latest head' (20121206_zone2json.2.patch) https://gist.github.com/5466765
you can contact me at jmazzi site5.com
In IRC I was asked which format I would prefer. Something like JSON would be ideal :)
A proposal for zone2json binary, should help with here.
Now properly escapes both " and \
applied in r2997, thanks!