Ghostdog:
Here is the format of my zone file when I run
bind-to-tinydns mydomain.org.db foo foo.tmp < mydomain.org.db
It converts fine, its just we have roughly 60 domains we are authoritative for and running this on 60 domains by hand is not pretty in terms of carpal tunnel setting in. That is the purpose of the script above, which is to take all our domains.com.db zone files and dump them out into tinydns format. We can then just "cat" all of them into one large file. But first I got to get the conversion part going which is the script above.
Zmydomain.org.db.:mydomain.org.:root.mydomain.org.:2007100200:3600:900:2592000:1800
&mydomain.org.db.::NS01.mydomain.COM.:86400
&mydomain.org.db.::NS02.mydomain.COM.:86400
@mydomain.org.db.::mailhost.mydomain.org.:10:86400
+mydomain.org.db.:208.97.97.89:86400
+localhost.mydomain.org.db.:127.0.0.1:86400
+mailhost.mydomain.org.db.:122.152.130.72:86400
+
www.mydomain.org.db.:208.97.97.89:86400