Location of slave and dynamical updated zone files changed.

This commit is contained in:
2021-12-10 11:36:43 +01:00
parent 8a00a00ace
commit c52287ad9a
4 changed files with 25 additions and 3 deletions

View File

@@ -39,6 +39,8 @@ DEFAULT_CONF_FILE_DIR="/etc/bind"
DEFAULT_BIND_USER="bind"
DEFAULT_BIND_GROUP="bind"
DEFAULT_ZONE_FILE_DYNAMIC_UPDATE_DIR="/var/lib/bind"
DEFAULT_ZONE_FILE_SUFFIX="zone"
DEFAULT_SOA_ADMIN_EMAIL="domreg@oopen.de"
DEFAULT_TSIG_KEY_NAME="update-dkim"
@@ -343,7 +345,7 @@ fi
[[ -n "$BIND_USER" ]] || BIND_USER="$DEFAULT_BIND_USER"
[[ -n "$BIND_GROUP" ]] || BIND_GROUP="$DEFAULT_BIND_GROUP"
[[ -n "$ZONE_FILE_MASTER_DIR" ]] || ZONE_FILE_MASTER_DIR="${CONF_FILE_DIR}/master"
[[ -n "$ZONE_FILE_DYNAMIC_UPDATE_DIR" ]] || ZONE_FILE_DYNAMIC_UPDATE_DIR="$DEFAULT_ZONE_FILE_DYNAMIC_UPDATE_DIR"
[[ -n "$ZONE_FILE_SUFFIX" ]] || ZONE_FILE_SUFFIX="$DEFAULT_ZONE_FILE_SUFFIX"
[[ -n "$SOA_ADMIN_EMAIL" ]] || SOA_ADMIN_EMAIL="$DEFAULT_SOA_ADMIN_EMAIL"
@@ -370,7 +372,7 @@ SOA_ADMIN_EMAIL="${SOA_ADMIN_EMAIL/@/.}"
new_dkim_zone="_domainkey.$dkim_domain"
new_zone_file="${ZONE_FILE_MASTER_DIR}/${new_dkim_zone}.${ZONE_FILE_SUFFIX}"
new_zone_file="${ZONE_FILE_DYNAMIC_UPDATE_DIR}/${new_dkim_zone}.${ZONE_FILE_SUFFIX}"
_zone_configuration_exists=false