Mercurial > hg > anonet-resdb
diff scripts/nameserver_autogen/bind_tld_zonefile.sh @ 1242:499aae037a7d draft
wew Merge branch 'master' of git://git.cathugger.ano/resdb
author | epoch <epoch@hack.thebackupbox.net> |
---|---|
date | Thu, 05 Sep 2019 02:36:34 +0000 |
parents | c842697ded21 |
children |
line wrap: on
line diff
--- a/scripts/nameserver_autogen/bind_tld_zonefile.sh Thu Sep 05 02:30:06 2019 +0000 +++ b/scripts/nameserver_autogen/bind_tld_zonefile.sh Thu Sep 05 02:36:34 2019 +0000 @@ -1,12 +1,13 @@ #!/bin/bash # made for bash. not sure if all /bin/sh work. # be sure to set these variables first. +# please don't edit this file though. #RESDB_PATH=/var/db/resdb #ZONEFILE_DIR=/etc/namedb # optional: : ${TLDS:=ano} : ${RDNS_PREFIX:=21} -: ${RDNS6_PREFIX:=fd63:1e39:6f73} #not actually used atm. +RDNS6_PREFIX=fd63:1e39:6f73 # do not change, hardcoded below if [ ! "$ZONEFILE_DIR" ];then echo "You forgot to set some variables. read the source plzkthx." >&2 @@ -16,7 +17,7 @@ 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 $RDNS6_PREFIX::/48..." >&2 echo "; this zonefile generated on: `date -u`" > "$RDNS_ZONEFILE".tmp echo '$TTL 3600' >> "$RDNS_ZONEFILE".tmp echo '$ORIGIN' $DOM. >> "$RDNS_ZONEFILE".tmp