summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeekingFor <SeekingFor@sfor.something>2013-11-06 06:16:25 +0000
committerSeekingFor <SeekingFor@sfor.something>2013-11-06 06:16:25 +0000
commitc76db71a6c52f218537fd804ff426f1fc4bd773c (patch)
tree248c6d7b4aadb92c1674cd4bb611c1908ad17063
parent2d36bc2b39072bf991aaec5b2b6d40dd33c4f046 (diff)
parentdb1ffbcb420fd73f223eb98615f677145da513bd (diff)
downloadresdb-c76db71a6c52f218537fd804ff426f1fc4bd773c.tar.gz
resdb-c76db71a6c52f218537fd804ff426f1fc4bd773c.zip
Merge branch 'master' of git://1.41.41.1
-rw-r--r--db/dom/ano/allowed/ns/ns1.allowed.ano1
-rw-r--r--db/dom/ano/allowed/ns/ns2.allowed.ano1
-rwxr-xr-xscripts/nameserver_autogen/bind_tld_zonefile.sh16
3 files changed, 13 insertions, 5 deletions
diff --git a/db/dom/ano/allowed/ns/ns1.allowed.ano b/db/dom/ano/allowed/ns/ns1.allowed.ano
new file mode 100644
index 0000000..cb39eef
--- /dev/null
+++ b/db/dom/ano/allowed/ns/ns1.allowed.ano
@@ -0,0 +1 @@
+1.41.41.1
diff --git a/db/dom/ano/allowed/ns/ns2.allowed.ano b/db/dom/ano/allowed/ns/ns2.allowed.ano
new file mode 100644
index 0000000..542e31a
--- /dev/null
+++ b/db/dom/ano/allowed/ns/ns2.allowed.ano
@@ -0,0 +1 @@
+fd63:1e39:6f73:2929::1
diff --git a/scripts/nameserver_autogen/bind_tld_zonefile.sh b/scripts/nameserver_autogen/bind_tld_zonefile.sh
index 06eb802..a86455d 100755
--- a/scripts/nameserver_autogen/bind_tld_zonefile.sh
+++ b/scripts/nameserver_autogen/bind_tld_zonefile.sh
@@ -2,12 +2,15 @@
#made for bash. not sure if all /bin/sh work.
#be sure to edit these variables first.
-ANO_ZONEFILE=/etc/namedb/ano
-RDNS_ZONEFILE=/etc/namedb/1.in-addr.arpa
-RESDB_PATH=/services/resdb/resdb
+#ANO_ZONEFILE=/etc/namedb/ano
+#RDNS_ZONEFILE=/etc/namedb/1.in-addr.arpa
+#RESDB_PATH=/services/resdb/resdb
+if [ ! "$ANO_ZONEFILE" ];then
+ echo "You forgot to set some variables. read the source plzkthx."
+ exit 0;
+fi
-cd ${RESDB_PATH}/db/dom/ano
echo -n "generating ipv4 reverse lookup zonefile for 1/8..."
@@ -17,7 +20,7 @@ echo '@ IN SOA localhost. root.localhost. ('`date +" %Y%m%d%H"`' 60 300 3600000
echo '@ IN NS localhost.' >> "$RDNS_ZONEFILE"
echo 'localhost. IN A 127.0.0.1' >> "$RDNS_ZONEFILE"
-for i in `ls /services/resdb/resdb/db/ip/01/*/*/ns/*`;do
+for i in `ls ${RESDB_PATH}/db/ip/01/*/*/ns/*`;do
f=$(basename $i)
a=$(basename $(dirname $i))
b=$(basename $(dirname $(dirname $i)))
@@ -26,6 +29,8 @@ for i in `ls /services/resdb/resdb/db/ip/01/*/*/ns/*`;do
done >> "$RDNS_ZONEFILE"
echo done.
+cd ${RESDB_PATH}/db/dom/ano
+
echo -n generating .ano TLD zonefile...
echo "; this zonefile genreated on: `date`" > "$ANO_ZONEFILE"
@@ -34,6 +39,7 @@ echo '@ IN SOA localhost. root.localhost. ('`date +" %Y%m%d%H"`' 60 300 3600000
echo '@ IN NS localhost.' >> "$ANO_ZONEFILE"
echo 'localhost. IN A 127.0.0.1' >> "$ANO_ZONEFILE"
+
for name in *;do
if [ -e "${name}/ns/" ];then
for server in "$name"/ns/*;do