Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | #!/bin/sh |
2 | |||||
3 | if [ ! -s /etc/bind/rndc.key ]; then | ||||
4 | echo -n "Generating /etc/bind/rndc.key:" | ||||
Andrew Geissler | c3d88e4 | 2020-10-02 09:45:00 -0500 | [diff] [blame] | 5 | /usr/sbin/rndc-confgen -a -b 512 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 6 | chown root:bind /etc/bind/rndc.key |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 7 | chmod 0640 /etc/bind/rndc.key |
8 | fi |