Hi All,
Please help me. I'm following the book - ' DNS and BIND, 5th Ed By Paul Albitz, Cricket Liu '. This RNDC is driving me crazy. I spent all day trying to configure rndc. Tried every possible combination in config files, but I just cant control remote server. Tried many tutorials from google, nothing helped. LQ is my last hope.
So, my story goes like this...
MASTER BIND SERVER:
Host: toystory.movie.edu
IP: 10.249.249.3/24
OS: CentOS 7.1
SLAVE BIND SERVER:
Host: wormhole.movie.edu
IP: 10.249.249.2/24
OS: CentOS 6.6
MASTER SERVER (toystory) CONFIGURATION FILES:
Code:
[root@toystory ~]# cat /etc/rndc.conf
key "toystory-key" {
algorithm hmac-md5;
secret "K9qBsQwusP6430cykS2AeA==";
};
options {
default-key "toystory-key";
default-server 127.0.0.1;
default-port 953;
};
[root@toystory ~]# cat /etc/named.conf
key "toystory-key" {
algorithm hmac-md5;
secret "K9qBsQwusP6430cykS2AeA==";
};
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "toystory-key"; };
};
key "wormhole-key" {
algorithm hmac-md5;
secret "7PvoY3oysQz8DyASiUTlNA==";
};
controls {
inet 10.249.249.3 port 953
allow { 10.249.249.2; } keys { "wormhole-key"; };
};
SLAVE SERVER (wormhole) CONFIGURATION FILES:
Code:
[root@wormhole ~]# cat /etc/rndc.conf
key "wormhole-key" {
algorithm hmac-md5;
secret "7PvoY3oysQz8DyASiUTlNA==";
};
options {
default-key "wormhole-key";
default-server 127.0.0.1;
default-port 953;
};
[root@wormhole ~]# cat /etc/named.conf
key "wormhole-key" {
algorithm hmac-md5;
secret "7PvoY3oysQz8DyASiUTlNA==";
};
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "wormhole-key"; };
};
server 10.249.249.3 {
keys { "wormhole-key"; };
};
TESTING:
MASTER (toystory):
Code:
[root@toystory ~]# rndc status
version: 9.9.4-RedHat-9.9.4-18.el7_1.1 <id:8f9657aa>
CPUs found: 1
worker threads: 1
UDP listeners per interface: 1
number of zones: 104
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@toystory ~]# rndc -s wormhole.movie.edu status
rndc: connect failed: 10.249.249.2#953: connection refused
SLAVE (wormhole):
Code:
[root@wormhole ~]# rndc status
version: 9.8.2rc1-RedHat-9.8.2-0.30.rc1.el6_6.2
CPUs found: 1
worker threads: 1
number of zones: 22
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
What I'm doing wrong? Please Help!!!
Thanks