# this is a working example I used to test this script on my box:

$myhostname = "ns1.grant.org";

$zonetemplate = '
$domain.      IN NS	$myhostname.		; $myipaddr
$domain.      IN NS	ns.jcmco.com.		; 206.190.164.34
$domain.      IN NS	msb.significant.com.	; 209.6.82.5

$domain.		IN A	$myipaddr

$myhostname.		IN A	$myipaddr
ns.jcmco.com.		IN A	206.190.164.34
msb.significant.com.	IN A	209.6.82.5

; mail
$domain.		IN MX	0 smtp1.$domain.
smtp1.$domain.		IN A	$myipaddr

; Virtual Web hosts
www.$domain.		IN A	$myipaddr';

