rndc stuff
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2025-10-28 11:25:13 +01:00
parent a68b94c5f3
commit 54057f144d
4 changed files with 34 additions and 1 deletions

View File

@@ -7,7 +7,16 @@ echo "Starting BIND initialization..."
echo "Fixing permissions for /etc/named/zones"
sudo chown -R named:named /etc/named/zones
sudo chmod -R 750 /etc/named/zones
ls -la /etc/named/zones
# Generate rndc key if it doesn't exist
if [ ! -f /etc/named/rndc.key ]; then
echo "Generating new rndc key..."
rndc-confgen -a -k rndc-key -c /etc/named/rndc.key
echo "Generated rndc key:"
cat /etc/named/rndc.key
else
echo "Using existing rndc key"
fi
INITIALLY_INSTALLED_FLAG="/etc/named/zones/initialized"
# Copy template files to working directories if they don't exist