Mercurial > hg > anonet-resdb
changeset 1150:1a78a6c3fa87 draft
Merge branch 'master' of git://1.41.41.1
author | SeekingFor <SeekingFor@sfor.something> |
---|---|
date | Wed, 06 Nov 2013 06:16:25 +0000 |
parents | d05e28ba7242 (current diff) 0d052b041bb1 (diff) |
children | 96fd01b8162e |
files | |
diffstat | 3 files changed, 13 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/db/dom/ano/allowed/ns/ns1.allowed.ano Wed Nov 06 06:16:25 2013 +0000 @@ -0,0 +1,1 @@ +1.41.41.1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/db/dom/ano/allowed/ns/ns2.allowed.ano Wed Nov 06 06:16:25 2013 +0000 @@ -0,0 +1,1 @@ +fd63:1e39:6f73:2929::1
--- a/scripts/nameserver_autogen/bind_tld_zonefile.sh Fri Nov 01 15:53:43 2013 +0000 +++ b/scripts/nameserver_autogen/bind_tld_zonefile.sh Wed Nov 06 06:16:25 2013 +0000 @@ -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 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 @@ 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 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