blob: ef915c0ae5a4611d72389100fc851df39afc182f [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001#!/bin/sh
2
3if [ ! -s /etc/bind/rndc.key ]; then
4 echo -n "Generating /etc/bind/rndc.key:"
5 /usr/sbin/rndc-confgen -a -b 512 -r /dev/urandom
Brad Bishopd7bf8c12018-02-25 22:55:05 -05006 chown root:bind /etc/bind/rndc.key
Patrick Williamsc124f4f2015-09-15 14:41:29 -05007 chmod 0640 /etc/bind/rndc.key
8fi