redhat7.2,rndc不能启动

由 antelope 在 09-05-2003 20:41 发表:

redhat7.2,rndc不能启动

dns服务器已经没问题了,配置文件只是在caching-nameserver的named.conf基础上加了私网的域变换,其他都没改,rndc的配置文件也没该

dns服务器已经启动,

运行rndc command,

报错rndc: get key definition ; not found

为什么,怎么解决?


由 Glue 在 09-05-2003 21:34 发表:


这个key是named和rndc之间加密通讯要用到的密钥,

1. 建一个/etc/rndc.key

内容

> > 源码: >
> * * * >
>
> > > key "rndckey" {
> > > algorithm hmac-md5;
> > > secret "asdfwerqwerupbqru1uqwifasdfVoXVCFjtGAupOznFoTtPSZsAubEs";
> > > };
> > >
>
> * * *

2. 再在/etc/named.conf里加上

include "/etc/rndc.key"

3. pkill -HUP named

就可以了

<font face="

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus