diff options
Diffstat (limited to 'scripts/nameserver_autogen')
-rwxr-xr-x | scripts/nameserver_autogen/bind_tld_zonefile | 1 |
1 files changed, 1 insertions, 0 deletions
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"); } |