# HG changeset patch # User pragmo # Date 1294703376 0 # Node ID 0aecff46b1ac72ae0d1519463a4572063490cb57 # Parent 2970515a2615816577efd77bfb6df69a9d32bc73# Parent 4a4f9682f43e926cd7e2be7a41f369b4dda01d07 Merge branch 'master' of git://1.3.9.1 diff -r 2970515a2615 -r 0aecff46b1ac scripts/nameserver_autogen/bind_tld_zonefile --- a/scripts/nameserver_autogen/bind_tld_zonefile Mon Jan 10 05:46:02 2011 +0000 +++ b/scripts/nameserver_autogen/bind_tld_zonefile Mon Jan 10 23:49:36 2011 +0000 @@ -8,11 +8,14 @@ $servers = scandir($name.'/ns/'); foreach ($servers as $server) { if ($server[0] == '.') continue; - print($name.' IN NS '.$server."\n"); + if (substr($name, -4) == ".ano") $name .= "."; + $fqserver = $server; + if (substr($server, -4) == ".ano") $fqserver .= "."; + print($name.' IN NS '.$fqserver."\n"); $ips = file($name.'/ns/'.$server, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); foreach ($ips as $ip) { - print($server.' IN A '.$ip."\n"); + print($fqserver.' IN A '.$ip."\n"); } } }