repo: resdb
action: commit
revision: 
path_from: 
revision_from: 267867f11141cd9a7d1293f95b8967271e99fabf:
path_to: 
revision_to: 
git.thebackupbox.net
resdb
git clone git://git.thebackupbox.net/resdb
commit 267867f11141cd9a7d1293f95b8967271e99fabf
Author: lex 
Date:   Mon Jan 10 17:25:44 2011 -0600

    Fixed the bind generator to qualify full domain names properly in the generated zonefile

diff --git a/scripts/nameserver_autogen/bind_tld_zonefile b/scripts/nameserver_autogen/bind_tld_zonefile
index 4755cfdb3fc4874aaf2511c2dd55bb55cdcf99b9..
index ..3850d92c6bc074cff9fb366da7052f57e3331839 100755
--- a/scripts/nameserver_autogen/bind_tld_zonefile
+++ b/scripts/nameserver_autogen/bind_tld_zonefile
@@ -11,6 +11,7 @@ foreach ($names as $name) {
   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");
   }

-----END OF PAGE-----