docker-bind/regen-bind-key

7 lines
134 B
Bash
Executable File

#!/bin/bash
# reconfigure bind - regenerates secret keys
if [ ! -f /etc/bind/rndc.key ]; then
rndc-confgen -a -r /dev/urandom
fi