diff options
author | lex <lex@lynx.ano> | 2011-01-10 17:25:44 -0600 |
---|---|---|
committer | lex <lex@lynx.ano> | 2011-01-10 17:25:44 -0600 |
commit | 267867f11141cd9a7d1293f95b8967271e99fabf (patch) | |
tree | bcab2f897a41f86e5d466d80d90c23b2197bfda1 /scripts/nameserver_autogen | |
parent | 0a4b95b7f3571b0fff8cc119a17fe896fa4e6d7f (diff) | |
download | resdb-267867f11141cd9a7d1293f95b8967271e99fabf.tar.gz resdb-267867f11141cd9a7d1293f95b8967271e99fabf.zip |
Fixed the bind generator to qualify full domain names properly in the generated zonefile
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"); } |