diff --git a/etc/rc.d/named b/etc/rc.d/named index 89ea482eb2c..c915afd1083 100755 --- a/etc/rc.d/named +++ b/etc/rc.d/named @@ -71,7 +71,8 @@ named_precmd() fi # Create an rndc.key file for the user if none exists - if [ ! -f "${named_chrootdir}/etc/namedb/rndc.key" ]; then + if [ ! -f "${named_chrootdir}/etc/namedb/rndc.key" -a \ + ! -f "${named_chrootdir}/etc/namedb/rndc.conf" ]; then rndc-confgen -a -b256 ${confgen_chroot} fi }