From 267867f11141cd9a7d1293f95b8967271e99fabf Mon Sep 17 00:00:00 2001 From: lex Date: Mon, 10 Jan 2011 17:25:44 -0600 Subject: Fixed the bind generator to qualify full domain names properly in the generated zonefile --- scripts/nameserver_autogen/bind_tld_zonefile | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts') diff --git a/scripts/nameserver_autogen/bind_tld_zonefile b/scripts/nameserver_autogen/bind_tld_zonefile index 4755cfd..3850d92 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"); } -- cgit v1.2.3