This fixes the issue of not being an authoritative server for a domain. It's a bit of a hack, but it works for the moment.
-bash-3.00$ diff -p functions.php functions-old.php
613c613
< $s = ".".$domain.":".$soa['tldhost']."::".$soa['ttl']."\n"."Z".$domain.":".$s oa['tldhost'].":".$soa['tldemail']."::".$soa['refresh'].":".$soa['retry' ].":".$soa['expire'].":".$soa['minimum'].":".$soa['ttl']."\n";
---
> $s = "Z".$domain.":".$soa['tldhost'].":".$soa['tldemail']."::".$soa['refresh' ].":".$soa['retry'].":".$soa['expire'].":".$soa['minimum'].":".$soa['ttl ']."\n";
-bash-3.00$ diff -cp functions.php functions-old.php
*** functions.php Wed Apr 13 22:45:11 2005
--- functions-old.php Wed Apr 13 21:53:05 2005
*************** function build_data_line($row,$domain) {
*** 610,616 ****
$s = "C".$row['host'].":".$row['val'].":".$row['ttl']."\n";
} else if($row['type'] == 'S') {
$soa = parse_soa($row);
! $s = ".".$domain."::".$soa['tldhost'].":".$soa['ttl']."\n"."Z".$domain.":".$s oa['tldhost'].":".$soa['tldemail']."::".$soa['refresh'].":".$soa['retry' ].":".$soa['expire'].":".$soa['minimum'].":".$soa['ttl']."\n";
} else if($row['type'] == 'V') {
$s = ":".$row['host'].": 33:".encode_rdata('cccq',array($row['distance'],$row['weight'],$row['por t'],$row['val'])).":".$row['ttl']."\n";
} else {
--- 610,616 ----
$s = "C".$row['host'].":".$row['val'].":".$row['ttl']."\n";
} else if($row['type'] == 'S') {
$soa = parse_soa($row);
! $s = "Z".$domain.":".$soa['tldhost'].":".$soa['tldemail']."::".$soa['refresh' ].":".$soa['retry'].":".$soa['expire'].":".$soa['minimum'].":".$soa['ttl ']."\n";
} else if($row['type'] == 'V') {
$s = ":".$row['host'].": 33:".encode_rdata('cccq',array($row['distance'],$row['weight'],$row['por t'],$row['val'])).":".$row['ttl']."\n";
} else {
