changeset 340:1299c56b6d5c draft

Fixed the bind generator to qualify full domain names properly in the generated zonefile
author lex <lex@lynx.ano>
date Mon, 10 Jan 2011 17:25:44 -0600
parents 2a8c65592ba0
children 4a4f9682f43e
files scripts/nameserver_autogen/bind_tld_zonefile
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/nameserver_autogen/bind_tld_zonefile	Sun Jan 09 06:53:42 2011 -0600
+++ b/scripts/nameserver_autogen/bind_tld_zonefile	Mon Jan 10 17:25:44 2011 -0600
@@ -11,6 +11,7 @@
   print($name.' IN NS '.$server."\n");
   $ips = file($name.'/ns/'.$server, FILE_IGNORE_NEW_LINES |
    FILE_SKIP_EMPTY_LINES);
+  if (substr($server, -4, 4) == ".ano") $server .= ".";
   foreach ($ips as $ip) {
    print($server.' IN A '.$ip."\n");
   }