Mercurial > hg > anonet-resdb
changeset 363:e70f56fcb80b draft
Merge branch 'master' of git://git1.somerandomnick.ano
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Wed, 12 Jan 2011 14:30:04 +0100 |
parents | f316fd5e13bf (diff) 30b747e3c5d6 (current diff) |
children | c35fdaa5fc48 |
files | |
diffstat | 4 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/db/dom/ano/1984/ns/ns.1984.ano Wed Jan 12 14:30:04 2011 +0100 @@ -0,0 +1,1 @@ +1.9.8.4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/db/ip/01/01/7B/cidr Wed Jan 12 14:30:04 2011 +0100 @@ -0,0 +1,1 @@ +1.1.123.0/24
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/db/ip/01/01/7B/owner Wed Jan 12 14:30:04 2011 +0100 @@ -0,0 +1,1 @@ +atiti
--- a/scripts/nameserver_autogen/bind_tld_zonefile Wed Jan 12 07:43:33 2011 +0000 +++ b/scripts/nameserver_autogen/bind_tld_zonefile Wed Jan 12 14:30:04 2011 +0100 @@ -8,11 +8,14 @@ $servers = scandir($name.'/ns/'); foreach ($servers as $server) { if ($server[0] == '.') continue; - print($name.' IN NS '.$server."\n"); + if (substr($name, -4) == ".ano") $name .= "."; + $fqserver = $server; + if (substr($server, -4) == ".ano") $fqserver .= "."; + print($name.' IN NS '.$fqserver."\n"); $ips = file($name.'/ns/'.$server, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); foreach ($ips as $ip) { - print($server.' IN A '.$ip."\n"); + print($fqserver.' IN A '.$ip."\n"); } } }