1 2 3 4 5 6 7
#!/bin/sh # Generate key required for reload to work -> creates /etc/bind/rndc.key if ! [ -f /etc/bind/rndc.key ]; then rndc-confgen -a chown named:named /etc/bind/rndc.key fi