# HG changeset patch # User lex # Date 1294776520 21600 # Node ID 59102e1e06f9db31b7e1565d813e55cd3ee96c94 # Parent 61d1265b506faf2ecd332eb6b756fcfc83725025 Qualifying domain names in the bind generator script now diff -r 61d1265b506f -r 59102e1e06f9 scripts/nameserver_autogen/bind_tld_zonefile --- a/scripts/nameserver_autogen/bind_tld_zonefile Tue Jan 11 11:06:41 2011 -0500 +++ b/scripts/nameserver_autogen/bind_tld_zonefile Tue Jan 11 14:08:40 2011 -0600 @@ -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"); } } }