blob: 633e29c0e6157f465f22b0c9577b7813ccc6b6b1 [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:"
Andrew Geisslerc3d88e42020-10-02 09:45:00 -05005 /usr/sbin/rndc-confgen -a -b 512
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