有点一知半解的,先把配置命令记录一下。
创建key
[root@linuxv etc]# rndc-confgen -r /dev/urandom -a
更改权限
[root@linuxv etc]# chown root:named /etc/rndc.key
[root@linuxv etc]# chmod 644 /etc/rndc.key
重启named服务!验证
[root@linuxv etc]# /etc/init.d/named restart
Stopping named: [ OK ]
Starting named: [ OK ]
[root@linuxv etc]# /etc/init.d/named status
version: 9.8.2rc1-RedHat-9.8.2-0.23.rc1.el6_5.1
CPUs found: 1
worker threads: 1
number of zones: 16
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
recursive clients: 0/0/1000
tcp clients: 0/100
server is up and running
named-sdb (pid 28849) is running...
[root@linuxv etc]# rndc status
version: 9.8.2rc1-RedHat-9.8.2-0.23.rc1.el6_5.1
CPUs found: 1
worker threads: 1
number of zones: 16
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
recursive clients: 0/0/1000
tcp clients: 0/100
server is up and running