summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlex <lex@lynx.ano>2011-01-10 17:25:44 -0600
committerlex <lex@lynx.ano>2011-01-10 17:25:44 -0600
commit267867f11141cd9a7d1293f95b8967271e99fabf (patch)
treebcab2f897a41f86e5d466d80d90c23b2197bfda1
parent0a4b95b7f3571b0fff8cc119a17fe896fa4e6d7f (diff)
downloadresdb-267867f11141cd9a7d1293f95b8967271e99fabf.tar.gz
resdb-267867f11141cd9a7d1293f95b8967271e99fabf.zip
Fixed the bind generator to qualify full domain names properly in the generated zonefile
-rwxr-xr-xscripts/nameserver_autogen/bind_tld_zonefile1
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");
}