cgi script for managing DNS

This cgi script uses zone transfers and secure dynamic updates to manage DNS zones.
I wrote this when I needed to manage my home DNS and I got tired of remembering the nsupdate syntax ;)
The script has a couple of benefits:
The script (actually, not the script, but dynamic updates) have a couple of nasty side-effects too:

Download the script here and name it dns.cgi

Download parse.sh here

How to set it up

Suggestions

Thanks!

Thanks to Tim Wilfong for supplying a patch to cause zone transfer requests to be sent to the server specified in the SOA RR rather than to the default DNS server for the server where the CGI is running.