diff options
-rw-r--r-- | db/dom/ano/1984/ns/ns.1984.ano | 1 | ||||
-rw-r--r-- | db/ip/01/01/7B/cidr | 1 | ||||
-rw-r--r-- | db/ip/01/01/7B/owner | 1 | ||||
-rwxr-xr-x | scripts/nameserver_autogen/bind_tld_zonefile | 7 |
4 files changed, 8 insertions, 2 deletions
diff --git a/db/dom/ano/1984/ns/ns.1984.ano b/db/dom/ano/1984/ns/ns.1984.ano new file mode 100644 index 0000000..87c9ad4 --- /dev/null +++ b/db/dom/ano/1984/ns/ns.1984.ano @@ -0,0 +1 @@ +1.9.8.4 diff --git a/db/ip/01/01/7B/cidr b/db/ip/01/01/7B/cidr new file mode 100644 index 0000000..99accfa --- /dev/null +++ b/db/ip/01/01/7B/cidr @@ -0,0 +1 @@ +1.1.123.0/24 diff --git a/db/ip/01/01/7B/owner b/db/ip/01/01/7B/owner new file mode 100644 index 0000000..b0d3019 --- /dev/null +++ b/db/ip/01/01/7B/owner @@ -0,0 +1 @@ +atiti diff --git a/scripts/nameserver_autogen/bind_tld_zonefile b/scripts/nameserver_autogen/bind_tld_zonefile index 4755cfd..344bb4e 100755 --- a/scripts/nameserver_autogen/bind_tld_zonefile +++ b/scripts/nameserver_autogen/bind_tld_zonefile @@ -8,11 +8,14 @@ foreach ($names as $name) { $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"); } } } |