Error : rndc: connect failed: 127.0.0.1#953: connection refused
Cause : rndc.key file doesnt exists, if exists already then its ownership issue
Step 1 : Check whether key file exists if not generate it.
[root@dns ~]# ll /etc/rndc.key
ls: cannot access /etc/rndc.key: No such file or directory
[root@dns ~]# rndc-confgen -a
wrote key file "/etc/rndc.key"
[root@dns ~]#
Step 2 : Change the ownership for rndc.key file from root to named
[root@dns ~]# rndc status
rndc: connect failed: 127.0.0.1#953: connection refused
[root@dns ~]# ll /etc/rndc.key
-rw------- 1 root root 77 May 28 11:07 /etc/rndc.key
[root@dns ~]# chown named:named /etc/rndc.key
[root@dns ~]# /etc/init.d/named restart
Stopping named: . [ OK ]
Starting named: [ OK ]
[root@dns named]# rndc status
version: 9.7.3-P3-RedHat-9.7.3-8.P3.el6
CPUs found: 2
worker threads: 2
number of zones: 21
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
[root@dns named]#

No comments:
Post a Comment