🗃️ Committing everything that changed 🗃️

rootfs/tmp/etc/bind/named.conf
rootfs/tmp/etc/bind/rndc.key
rootfs/usr/local/etc/docker/init.d/00-named.sh
This commit is contained in:
casjay 2024-08-27 15:18:58 -04:00
parent a440582da7
commit a0c449be73
Signed by untrusted user who does not match committer: jason
GPG Key ID: 1AB309F42A764145
3 changed files with 5 additions and 5 deletions

View File

@ -1,10 +1,10 @@
# default options - https://bind9.readthedocs.io/en/latest/chapter3.html
#####################################################################
# rndc keys
key "dhcp-key" { algorithm hmac-sha256; secret "REPLACE_KEY_DHCP"; };
key "rndc-key" { algorithm hmac-sha256; secret "REPLACE_KEY_RNDC"; };
key "backup-key" { algorithm hmac-sha256; secret "MKEQ/REPLACE_KEY_BACKUP"; };
key "dhcp-key" { algorithm hmac-sha512; secret "REPLACE_KEY_DHCP"; };
key "rndc-key" { algorithm hmac-sha512; secret "REPLACE_KEY_RNDC"; };
key "certbot." { algorithm hmac-sha512; secret "REPLACE_KEY_CERTBOT"; };
key "backup-key" { algorithm hmac-sha512; secret "MKEQ/REPLACE_KEY_BACKUP"; };
#####################################################################
# access settings
acl "all" { 0.0.0.0/0; ::/0; };

View File

@ -1 +1 @@
key "rndc-key" { algorithm hmac-sha256; secret "REPLACE_KEY_RNDC"; };
key "rndc-key" { algorithm hmac-sha512; secret "REPLACE_KEY_RNDC"; };

View File

@ -62,7 +62,7 @@ __rndc_key() { grep -s 'key "rndc-key" ' /etc/named.conf | grep -v 'KEY_RNDC' |
__dhcp_key() { grep -s 'key "dhcp-key" ' /etc/named.conf | grep -v 'KEY_DHCP' | sed 's|.*secret ||g;s|"||g;s|;.*||g' | grep '^' || return 1; }
__certbot_key() { grep -s 'key "certbot" ' /etc/named.conf | grep -v 'KEY_CERTBOT' | sed 's|.*secret ||g;s|"||g;s|;.*||g' | grep '^' || return 1; }
__backup_key() { grep -s 'key "backup-key" ' /etc/named.conf | grep -v 'KEY_BACKUP' | sed 's|.*secret ||g;s|"||g;s|;.*||g' | grep '^' || return 1; }
__tsig_key() { tsig-keygen -a hmac-${1:-sha256} | grep 'secret' | sed 's|.*secret "||g;s|"||g;s|;||g' | grep '^' || echo 'wp/HApbthaVPjwqgp6ziLlmnkyLSNbRTehkdARBDcpI='; }
__tsig_key() { tsig-keygen -a hmac-${1:-sha512} | grep 'secret' | sed 's|.*secret "||g;s|"||g;s|;||g' | grep '^' || echo 'I665bFnjoPMB9EmEUl5uZ+o7e4ryM02irerkCkLJiSPJJYJBvBHSXCauNn44zY2C318DSWRcCx+tf8WESYwgKQ=='; }
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Script to execute
START_SCRIPT="/usr/local/etc/docker/exec/$SERVICE_NAME"