view scripts/nameserver_autogen/bind_tld_zonefile_all.sh @ 1234:538446cd9d41 draft

Revert "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" This reverts commit ab834161696a4f9150d1c8f52bb6f0f453950cb7.
author epoch <epoch@hack.thebackupbox.net>
date Wed, 10 Jul 2019 01:12:59 +0000
parents 4e07b815084b
children c842697ded21
line wrap: on
line source

#!/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
if [ ! "$ANO_ZONEFILE" ];then
 echo "You forgot to set some variables. read the source plzkthx." >&2
 exit 1
fi
# compat
export ZONEFILE_DIR=`dirname $RDNS_ZONEFILE`
TLDS='!' `dirname $0`/bind_tld_zonefile.sh
export ZONEFILE_DIR=`dirname $ANO_ZONEFILE`
RDNS_PREFIX='!' TLDS='*' `dirname $0`/bind_tld_zonefile.sh