Mercurial > hg > anonet-resdb
comparison scripts/nameserver_autogen/bind_tld_zonefile @ 340:1299c56b6d5c draft
Fixed the bind generator to qualify full domain names properly in the generated zonefile
author | lex <lex@lynx.ano> |
---|---|
date | Mon, 10 Jan 2011 17:25:44 -0600 |
parents | 2e7c94478881 |
children | 4a4f9682f43e |
comparison
equal
deleted
inserted
replaced
338:2a8c65592ba0 | 340:1299c56b6d5c |
---|---|
9 foreach ($servers as $server) { | 9 foreach ($servers as $server) { |
10 if ($server[0] == '.') continue; | 10 if ($server[0] == '.') continue; |
11 print($name.' IN NS '.$server."\n"); | 11 print($name.' IN NS '.$server."\n"); |
12 $ips = file($name.'/ns/'.$server, FILE_IGNORE_NEW_LINES | | 12 $ips = file($name.'/ns/'.$server, FILE_IGNORE_NEW_LINES | |
13 FILE_SKIP_EMPTY_LINES); | 13 FILE_SKIP_EMPTY_LINES); |
14 if (substr($server, -4, 4) == ".ano") $server .= "."; | |
14 foreach ($ips as $ip) { | 15 foreach ($ips as $ip) { |
15 print($server.' IN A '.$ip."\n"); | 16 print($server.' IN A '.$ip."\n"); |
16 } | 17 } |
17 } | 18 } |
18 } | 19 } |