-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: resdb action: commit revision: path_from: revision_from: ab834161696a4f9150d1c8f52bb6f0f453950cb7: path_to: revision_to:
commit ab834161696a4f9150d1c8f52bb6f0f453950cb7 Author: epoch <epoch@hack.thebackupbox.net> Date: Wed May 1 17:47:33 2019 +0000 dropped the use of @ so the generated zones would work with yadifa too. also exported env vars so child of bind_tld_zonefile_all.sh can use them diff --git a/scripts/nameserver_autogen/bind_tld_zonefile.sh b/scripts/nameserver_autogen/bind_tld_zonefile.sh
--- a/scripts/nameserver_autogen/bind_tld_zonefile.sh +++ b/scripts/nameserver_autogen/bind_tld_zonefile.sh @@ -16,13 +16,13 @@ fi DOM="3.7.f.6.9.3.e.1.3.6.d.f.ip6.arpa" RDNS_ZONEFILE="$ZONEFILE_DIR/$DOM" -echo -n 'generating IPv6 reverse lookup zonefile for...' >&2 +echo -n 'generating IPv6 reverse lookup zonefile for' $DOM '...' >&2 echo "; this zonefile generated on: `date -u`" > "$RDNS_ZONEFILE".tmp echo '$TTL 3600' >> "$RDNS_ZONEFILE".tmp echo '$ORIGIN' $DOM. >> "$RDNS_ZONEFILE".tmp -echo '@ IN SOA @ root ('`date -u +" %Y%m%d%H"`' 60 300 3600000 3600 )' >> "$RDNS_ZONEFILE".tmp -echo '@ IN NS @' >> "$RDNS_ZONEFILE".tmp -echo '@ IN A 127.0.0.1' >> "$RDNS_ZONEFILE".tmp +echo $DOM. 'IN SOA' $DOM. 'root ('`date -u +" %Y%m%d%H"`' 60 300 3600000 3600 )' >> "$RDNS_ZONEFILE".tmp +echo $DOM. 'IN NS ' $DOM. >> "$RDNS_ZONEFILE".tmp +echo $DOM. 'IN A 127.0.0.1' >> "$RDNS_ZONEFILE".tmp cd $RESDB_PATH/db/ip6/F/D/6/3/1/E/3/9/6/F/7/3/ for i in */*/*/*/ns/*;do a=$(printf "%s\n" "$i" | cut -d/ -f1-4 | tr '/' '.' | rev) @@ -55,9 +55,9 @@ for PFX in $RDNS_PREFIX;do echo "; this zonefile genreated on: `date -u`" > "$RDNS_ZONEFILE".tmp echo '$TTL 3600' >> "$RDNS_ZONEFILE".tmp echo '$ORIGIN' $DOM. >> "$RDNS_ZONEFILE".tmp - echo '@ IN SOA @ root ('`date -u +" %Y%m%d%H"`' 60 300 3600000 3600 )' >> "$RDNS_ZONEFILE".tmp - echo '@ IN NS @' >> "$RDNS_ZONEFILE".tmp - echo '@ IN A 127.0.0.1' >> "$RDNS_ZONEFILE".tmp + echo $DOM. 'IN SOA' $DOM. 'root ('`date -u +" %Y%m%d%H"`' 60 300 3600000 3600 )' >> "$RDNS_ZONEFILE".tmp + echo $DOM. 'IN NS ' $DOM. >> "$RDNS_ZONEFILE".tmp + echo $DOM. 'IN A 127.0.0.1' >> "$RDNS_ZONEFILE".tmp for i in */*/ns/*;do [ -e "$i" ] || continue @@ -82,9 +82,9 @@ for TLD in $TLDS;do echo "; this zonefile genreated on: `date -u`" > "$ANO_ZONEFILE".tmp echo '$TTL 3600' >> "$ANO_ZONEFILE".tmp echo '$ORIGIN' $TLD. >> "$ANO_ZONEFILE".tmp - echo '@ IN SOA @ root ('`date -u +" %Y%m%d%H"`' 60 300 3600000 3600 )' >> "$ANO_ZONEFILE".tmp - echo '@ IN NS @' >> "$ANO_ZONEFILE".tmp - echo '@ IN A 127.0.0.1' >> "$ANO_ZONEFILE".tmp + echo $TLD. 'IN SOA' $TLD. 'root ('`date -u +" %Y%m%d%H"`' 60 300 3600000 3600 )' >> "$ANO_ZONEFILE".tmp + echo $TLD. 'IN NS ' $TLD. >> "$ANO_ZONEFILE".tmp + echo $TLD. 'IN A 127.0.0.1' >> "$ANO_ZONEFILE".tmp for name in *;do if [ -d "$name/ns" ];then diff --git a/scripts/nameserver_autogen/bind_tld_zonefile_all.sh b/scripts/nameserver_autogen/bind_tld_zonefile_all.sh
--- a/scripts/nameserver_autogen/bind_tld_zonefile_all.sh +++ b/scripts/nameserver_autogen/bind_tld_zonefile_all.sh @@ -1,8 +1,8 @@ #!/bin/sh # be sure to set these variables first. -#ANO_ZONEFILE=/etc/namedb/ano -#RDNS_ZONEFILE=/etc/namedb/21.in-addr.arpa -#RESDB_PATH=/services/resdb/resdb +#export ANO_ZONEFILE=/etc/namedb/ano +#export RDNS_ZONEFILE=/etc/namedb/21.in-addr.arpa +#export RESDB_PATH=/services/resdb/resdb if [ ! "$ANO_ZONEFILE" ];then echo "You forgot to set some variables. read the source plzkthx." >&2 exit 1
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 12:13:21 2024