mirror of
https://github.com/casjaysdevdocker/bind
synced 2024-11-22 17:23:13 -05:00
🗃️ 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:
parent
28b60bf0d6
commit
4aacfbca5f
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user