🗃️ Committing everything that changed 🗃️

rootfs/tmp/etc/bind/named.conf
rootfs/usr/local/etc/docker/init.d/00-named.sh
This commit is contained in:
casjay 2024-08-27 10:42:07 -04:00
parent 28b60bf0d6
commit 4aacfbca5f
Signed by untrusted user who does not match committer: jason
GPG Key ID: 1AB309F42A764145
2 changed files with 4 additions and 3 deletions

View File

@ -84,4 +84,5 @@ zone "." {
file "REPLACE_VAR_DIR/root.cache"; file "REPLACE_VAR_DIR/root.cache";
}; };
# ********** end root info ********** # ********** end root info **********
# end #####################################################################
# begin imports

View File

@ -157,11 +157,11 @@ user_pass="${NAMED_USER_PASS_WORD:-}" # normal user password
[ -f "/config/env/named.sh" ] && . "/config/env/named.sh" # Overwrite the variabes [ -f "/config/env/named.sh" ] && . "/config/env/named.sh" # Overwrite the variabes
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Additional predefined variables # Additional predefined variables
DNS_SERIAL="$(date +'%Y%m%d%S')"
KEY_RNDC="${KEY_RNDC:-$(__rndc_key || __tsig_key)}" KEY_RNDC="${KEY_RNDC:-$(__rndc_key || __tsig_key)}"
KEY_DHCP="${KEY_DHCP:-$(__dhcp_key || __tsig_key)}" KEY_DHCP="${KEY_DHCP:-$(__dhcp_key || __tsig_key)}"
KEY_BACKUP="${KEY_BACKUP:-$(__backup_key || __tsig_key)}" KEY_BACKUP="${KEY_BACKUP:-$(__backup_key || __tsig_key)}"
KEY_CERTBOT="${KEY_CERTBOT:-$(__certbot_key || __tsig_key)}" KEY_CERTBOT="${KEY_CERTBOT:-$(__certbot_key || __tsig_key)}"
DNS_SERIAL="$(date +'%Y%m%d%S')"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Additional variables # Additional variables
DNS_TYPE="${DNS_TYPE:-primary}" DNS_TYPE="${DNS_TYPE:-primary}"
@ -277,7 +277,7 @@ __pre_execute() {
if [ $zone_files = 0 ] && [ ! -f "$DATA_DIR/zones/$HOSTNAME.zone" ]; then if [ $zone_files = 0 ] && [ ! -f "$DATA_DIR/zones/$HOSTNAME.zone" ]; then
cat <<EOF | tee "$DATA_DIR/zones/$HOSTNAME.zone" &>/dev/null cat <<EOF | tee "$DATA_DIR/zones/$HOSTNAME.zone" &>/dev/null
; config for $HOSTNAME ; config for $HOSTNAME
@ IN SOA $HOSTNAME. root.$HOSTNAME. ( $serial 10800 3600 1209600 38400) @ IN SOA $HOSTNAME. root.$HOSTNAME. ( $DNS_SERIAL 10800 3600 1209600 38400)
IN NS $HOSTNAME. IN NS $HOSTNAME.
$HOSTNAME. IN A $CONTAINER_IP4_ADDRESS $HOSTNAME. IN A $CONTAINER_IP4_ADDRESS