bind-to-tinydns 0.4.3 Daniel Erat ================================================================================ What it does / Why it does it ================================================================================ This program attempts to convert a BIND 9 zone file into the tinydns-data format natively used by the tinydns component of Dan Bernstein's djbdns package (http://cr.yp.to/djbdns.html). This can be useful if you need to periodically convert zones that are stored in BIND format to tinydns format and you don't have the willingness or the oodles of memory needed to run a copy of BIND from which you can slave the zones with axfr-get (think >100 MB DNSbl zones, for instance). For one-time conversions, you should instead use the AXFR procedure described by Dan (http://cr.yp.to/djbdns/run-server-bind.html). Getting / Compiling ================================================================================ The newest version of this program is available from my homepage (http://erat.org/). After downloading the source, extract it and run "make". Copy bind-to-tinydns wherever you want after this (I would recommend /usr/local/bin). Edit the Makefile and source or email me if it doesn't work. Usage ================================================================================ bind-to-tinydns is invoked in the following manner: bind-to-tinydns The BIND zone is read from STDIN. To convert a BIND zone file named "input" containing the zone "example.com" to a tinydns-data file named "output", you would run: bind-to-tinydns example.com output output.tmp wrote that he came across some zone files generated by Microsoft's DNS software that had invalid (too large) TTL values. Made his recommended changes, so the program spits out a warning and uses the default TTL instead of exiting with a fatal error. I also made the program a bit more lenient in other places (RRs of unknown type are skipped with a warning message instead of causing failure, for example). Thanks Mariano! 0.4.3 20050817 Ick, I can't believe that I wrote this ugly code. :( Fixed a bug that Rein ran into, where an origin of "." resulted in all records being declared out-of-zone.