rndc: connection to remote host closed

insekt

Member
Jul 5, 2004
5
0
151
Hello,

If im run 'rndc stop' or start server sats

[[email protected] cpins]# rndc stop
rndc: connection to remote host closed
This may indicate that the remote server is using an older version of
the command protocol, this host is not authorized to connect,
or the key is invalid.

or in cpanel

Bind reloading on serv1 using rndc
Error reloading bind on serv1: rndc: connection to remote host closed
This may indicate that the remote server is using an older version of
the command protocol, this host is not authorized to connect,
or the key is invalid.



Created DNS entry for planet.it-hosting.pl

how fix it?

Thank You:
Dominik Nowacki
 
Last edited:

AresXP

Member
May 26, 2004
16
0
151
That often happens with new servers.

Login as "root" to SSH:

Then do,
/scripts/fixndc
Then,
pico /etc/named.conf

Near the top, there's probably "rndc-key". Just remove the dash. (if there's no dashes, just follow the next step)

Do CTRL+X then Y

Then do
service named restart

That should do it :)
 

insekt

Member
Jul 5, 2004
5
0
151
key "zaq12wsx" {
algorithm hmac-md5;
secret "eCWWRhFVrc00mzz5QNmuSQ==";
};


controls {
inet 127.0.0.1 allow { localhost; } keys { "zaq12wsx"; };
};

This is my /etc/named.conf (top)

How im must change for repair it (im run fixndc and fixnamed
 

insekt

Member
Jul 5, 2004
5
0
151
# Currently, you can use the following options:
# ROOTDIR="/some/where" -- will run named in a chroot environment.
# you must set up the chroot environment before
# doing this.
# OPTIONS="whatever" -- These additional options will be passed to named
# at startup. Don't add -t here, use ROOTDIR instead.
ROOTDIR=/var/named/chroot

on all configs im say rndc-key in key value what me can ,make?
 

AresXP

Member
May 26, 2004
16
0
151
if you do not have rndckey just do "service named restart" and you should be fine.