WARNING: key file (/etc/bind/rndc.key) exists

Bind9

Зачастую после обновления или операциями с bind9 в debian/ubuntu появляется вот такая ошибка:

WARNING: key file (/etc/bind/rndc.key) exists, but using default configuration file (/etc/bind/rndc.conf)
rndc: no server specified and no default
WARNING: key file (/etc/bind/rndc.key) exists, but using default configuration file (/etc/bind/rndc.conf)rndc: no server specified and no default

Рассмотрим вопрос по ее лечению.

В /etc/bind удаляем rndc.conf.
В файле /etc/bind/named.conf вносим изменения, приводим в такой вид:

include "/etc/bind/rndc.key";
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};

Перезапускаем bind.

Оцените блог: 
Средняя: 2.5 (164 оценки)

Задать вопрос