Hello,
I noticed in my logwatch file I have an error with my rndc key. I could
'play' around with it and may fix it but most likey just hose things up.
I
think I see the problem but not 100% sure. I think the key file has 3
different names.
Here's the error:
**Unmatched Entries**
/etc/named.conf:23: couldn't find key 'rndckey' for use with
command
channel 127.0.0.1#953: 1 Time(s)
Here's parts of the relevant files:
named.conf:
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
include "/etc/rndc.key"; <-- does not match above
--------------------------------------------------------------
rdnc.conf:
options {
default-server localhost;
default-key "rndckey";
};
server localhost {
key "rndckey";
};
key "rndckey" {
algorithm hmac-md5;
secret "xxxxxxxxxxxxxxxxxxxxx";
};
----------------------------------------------------------------
rdnc.key:
key "rndc-key" { <----- yet another name for the key
algorithm hmac-md5;
secret "xxxxxxxxxxxxxxxxxxxxxxx";
};
-----------------------------------------------------------------
Anyone know what the simpliest solution would be?
TIA
Am Sa, den 26.11.2005 schrieb Thomas E Dukes um 16:21:> I noticed in my logwatch file I have an error with my rndc key. I could > 'play' around with it and may fix it but most likey just hose things up. I > think I see the problem but not 100% sure. I think the key file has 3 > different names. > > Here's the error: > > **Unmatched Entries** > /etc/named.conf:23: couldn't find key 'rndckey' for use with command > channel 127.0.0.1#953: 1 Time(s) > > Here's parts of the relevant files: > > named.conf: > > controls { > inet 127.0.0.1 allow { localhost; } keys { rndckey; };This key name "rndckey" must match ...> include "/etc/rndc.key"; <-- does not match above > -------------------------------------------------------------- > > rdnc.conf: > > options { > default-server localhost; > default-key "rndckey"; > }; > > server localhost { > key "rndckey"; > }; > > key "rndckey" { > algorithm hmac-md5; > secret "xxxxxxxxxxxxxxxxxxxxx"; > }; > ---------------------------------------------------------------- > > rdnc.key: > > key "rndc-key" { <----- yet another name for the key... the key name given here.> algorithm hmac-md5; > secret "xxxxxxxxxxxxxxxxxxxxxxx"; > }; > ----------------------------------------------------------------- > > Anyone know what the simpliest solution would be?Rename "rndc-key" to be "rndckey" in /etc/rndc.key file. Alexander -- Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773 legal statement: http://www.uni-x.org/legal.html Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp Serendipity 18:05:15 up 28 days, 16:05, load average: 0.14, 0.20, 0.18 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Dies ist ein digital signierter Nachrichtenteil URL: <http://lists.centos.org/pipermail/centos/attachments/20051126/21caa3dd/attachment-0005.sig>
> -----Original Message----- > From: centos-bounces at centos.org > [mailto:centos-bounces at centos.org] On Behalf Of Alexander Dalloz > Sent: Saturday, November 26, 2005 12:07 PM > To: CentOS mailing list > Subject: Re: [CentOS] rdnc error > > Am Sa, den 26.11.2005 schrieb Thomas E Dukes um 16:21: > > > I noticed in my logwatch file I have an error with my rndc key. I > > could 'play' around with it and may fix it but most likey just hose > > things up. I think I see the problem but not 100% sure. I > think the > > key file has 3 different names. > > > > Here's the error: > > > > **Unmatched Entries** > > /etc/named.conf:23: couldn't find key 'rndckey' for use with > > command channel 127.0.0.1#953: 1 Time(s) > > > > Here's parts of the relevant files: > > > > named.conf: > > > > controls { > > inet 127.0.0.1 allow { localhost; } keys { rndckey; }; > > This key name "rndckey" must match ... > > > include "/etc/rndc.key"; <-- does not match above > > -------------------------------------------------------------- > > > > rdnc.conf: > > > > options { > > default-server localhost; > > default-key "rndckey"; > > }; > > > > server localhost { > > key "rndckey"; > > }; > > > > key "rndckey" { > > algorithm hmac-md5; > > secret "xxxxxxxxxxxxxxxxxxxxx"; }; > > ---------------------------------------------------------------- > > > > rdnc.key: > > > > key "rndc-key" { <----- yet another name for the key > > ... the key name given here. > > > algorithm hmac-md5; > > secret "xxxxxxxxxxxxxxxxxxxxxxx"; > > }; > > ----------------------------------------------------------------- > > > > Anyone know what the simpliest solution would be? > > Rename "rndc-key" to be "rndckey" in /etc/rndc.key file. > > AlexanderThanks Alex, that got it!!!
Apparently Analagous Threads
- rndc: connect failed: 127.0.0.1#953: connection refuse
- rndc: connect failed: 127.0.0.1#953: connection refused
- rndc start fails with "rndc: connect failed: connection refused"
- rndc: connect failed: 127.0.0.1#953: connection refused
- Problems with bind9_dlz when rndc is reloaded