repo: resdb
action: commit
revision: 
path_from: 
revision_from: e6bcd43e82172a42004a9a6e80bfa934a64298f6:
path_to: 
revision_to: 
git.thebackupbox.net
resdb
git clone git://git.thebackupbox.net/resdb
commit e6bcd43e82172a42004a9a6e80bfa934a64298f6
Author: cathugger 
Date:   Thu Sep 5 02:34:52 2019 +0000

    some tweaks to namegen

diff --git a/scripts/nameserver_autogen/bind_tld_zonefile.sh b/scripts/nameserver_autogen/bind_tld_zonefile.sh
index 31e36a472af6f6711f990de4224d9bc1ad63b3ce..
index ..c8ef02a99a60e4730ac9ed5fd91de02c636e5fcf 100755
--- a/scripts/nameserver_autogen/bind_tld_zonefile.sh
+++ b/scripts/nameserver_autogen/bind_tld_zonefile.sh
@@ -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 @@ 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 $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
diff --git a/scripts/nameserver_autogen/bind_tld_zonefile_all.sh b/scripts/nameserver_autogen/bind_tld_zonefile_all.sh
index 422c17d99c1d865f1085f4b5a5e535df2d175428..
index ..8b8cc829d307d2bb8a52290032badeff05bc9e44 100755
--- a/scripts/nameserver_autogen/bind_tld_zonefile_all.sh
+++ b/scripts/nameserver_autogen/bind_tld_zonefile_all.sh
@@ -1,8 +1,9 @@
 #!/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
+# please don't edit this file though.
+#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-----