Mercurial > hg > anonet-resdb
view scripts/nameserver_autogen/bind_tld_zonefile @ 357:2f379a0b6461 draft
Revert "Added git path (Atiti)"
This reverts commit c964d8bbde489b54db02be6e399d9ab364265765.
Setting configure to force bash is inappropriate. configure can use any
shell with korn or compatible features, and on most systems /bin/sh points
to such a shell. Ubutnu breaks compatibility by changing /bin/sh to dash.
The solution is to fix Ubuntu, not to break the configure script.
author | Nick <nick@somerandomnick.ano> |
---|---|
date | Wed, 12 Jan 2011 07:20:11 +0000 |
parents | 2e7c94478881 |
children | 1299c56b6d5c 59102e1e06f9 |
line wrap: on
line source
#!/usr/bin/php <?php print('$ttl 600'."\n"); chdir('../db/dom/ano'); $names = scandir('./'); foreach ($names as $name) { if (!file_exists($name.'/ns/')) continue; $servers = scandir($name.'/ns/'); foreach ($servers as $server) { if ($server[0] == '.') continue; print($name.' IN NS '.$server."\n"); $ips = file($name.'/ns/'.$server, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); foreach ($ips as $ip) { print($server.' IN A '.$ip."\n"); } } } ?>