Signed-off-by: ale <ale@manalejandro.com>
This commit is contained in:
ale 2024-11-23 12:16:23 +01:00
parent 7a3b2c0ac0
commit 78e527a5df
Signed by: ale
GPG Key ID: 244A9C4DAB1C0C81
3 changed files with 8 additions and 3 deletions

View File

@ -3,9 +3,9 @@
# $ dnssec-keygen -K /etc/bind -a RSASHA256 -b 4096 -n ZONE -3 -f KSK $DOMAIN
# $ dnssec-keygen -K /etc/bind -a RSASHA256 -b 2048 -n ZONE $DOMAIN
# $ opendkim-genkey -b 2048 -h rsa-sha256 -r -s dkim -d $DOMAIN -v
DOMAIN="DOMAIN.COM"
IP=MACHINE-IPV4
IPV6=MACHINE-IPV6
DOMAIN=$DOMAIN
IP=$IP
IPV6=$IPV6
DKIM=$(sed -e 's/"/\"/g' /etc/bind/dkim.txt)
if [ $(cat /etc/bind/version) -gt 99 ] || [ ! -e /etc/bind/version ]; then
echo 1 > /etc/bind/version

View File

@ -6,6 +6,8 @@ services:
hostname: bind
container_name: bind
restart: always
env_file:
- env
entrypoint:
- /etc/bind/entrypoint.sh
ports:

3
env Normal file
View File

@ -0,0 +1,3 @@
DOMAIN="DOMAIN.COM"
IP=MACHINE-IPV4
IPV6=MACHINE-IPV6