LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-21-2008, 06:47 PM   #16
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32

I have taken out the part options and created a file called rndc.conf and put that section in there.

Now I get the error:

Code:
Stopping domain name service...: bindrndc: get config key list: not found
 failed!
which indicates that it doesn't like the command 'options'?

So maybe if there's something else that I could use maybe an updated command or something then perhaps it will work?

Or perhaps it's because I am running bind chrooted I don't know

Last edited by kayasaman; 09-21-2008 at 06:48 PM.
 
Old 09-21-2008, 07:14 PM   #17
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
I don't see anything obvious. Move the options group above the key group?

Starting named won't care about rndc.conf.
 
Old 09-21-2008, 07:15 PM   #18
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
The get config key list error occurs because you have no default key listed. You need one for rndc to use. See previous post.
 
Old 09-21-2008, 07:27 PM   #19
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
Hmm ok reversed the options group to the top of the rndc.key file however it is still complaining??

Code:
Stopping domain name service...: bindrndc: error: /etc/bind/rndc.key:1: unknown option 'Options'
rndc: could not load rndc configuration
 failed!
Starting domain name service...: bind.
The above error is gone as I added the options part back into rndc.key and removed rndc.conf completely. But am back to square 2 as I've already passed one!
 
Old 09-21-2008, 07:33 PM   #20
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
Hmm maybe Debian just didn't implement 'options' with rndc or used a different verison??
 
Old 09-21-2008, 07:33 PM   #21
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Yeah, I didn't think that was the problem, but wanted to know for sure (thanks for verifying!). Bind doesn't have much concern about order of these groups.

BUT, now I see your error message is different:

error: /etc/bind/rndc.key:1: unknown option 'Options'

The keyword is lowercase. Your previous options error did not show the first letter in uppercase though.
 
Old 09-21-2008, 07:40 PM   #22
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
It was upercase for some reason?? Anyway changed it to lower case and reversed the 'options' back to below the 'key' part.

Error:

Code:
rndc: error: /etc/bind/rndc.key:6: unknown option 'options'
rndc: could not load rndc configuration
So now I'm not sure what to do!

Unless I can reset the system to like before without the use of a key? as then rndc did load! - or reload in my case
 
Old 09-21-2008, 07:42 PM   #23
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
The options statement has been around since at least v9.2. The OP is using 9.3.4-P1.
 
Old 09-21-2008, 07:45 PM   #24
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
Ok so again, this is part of the named file:

Code:
 key "rndc-key" {
       algorithm hmac-md5;
       secret "JJqB3jsb8+VJIJOfwSdySw==";
 };

 controls {
       inet 127.0.0.1 port 953
               allow { 127.0.0.1; } keys { "rndc-key"; };
 };
rndc.key file:

Code:
key "rndc-key" {
        algorithm hmac-md5;
        secret "JJqB3jsb8+VJIJOfwSdySw==";
};

options {
        default-key "rndc-key";
        default-server 127.0.0.1;
        default-port 953;
};
which was the output generated by rndc-confgen!

I can run it again and see what happens?
 
Old 09-21-2008, 07:47 PM   #25
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I hate to ask a dumb question, but perhaps a new set of eyes helps.

Where do you refer to rndc.key? I can see rndc-key in named.conf, but to "include" or otherwise for rndc.key (unless named.conf.options perhaps?)

Edit sorry - was typing as you made your last post - point remains the same even if it looks a little odd.
 
Old 09-21-2008, 07:52 PM   #26
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
hmm I haven't used any include statements at all!

I don't know if I need to though, but maybe the Debian implementation of this needs that?

All my google'ing for Debian and rndc keys just showed people without the 'options' part in the rndc.key file however the wierd thing is that the system complains with it or without it.

So either the server is experiancing PMT (Pre Mechanical Tension) or I'm missing something vital here.
 
Old 09-21-2008, 08:03 PM   #27
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
You can include, or copy/paste - so long as the data is seen consistently in both named.conf and rndc.conf and rndc.key.

The error is that you have your options statement in your rndc.key file, and it should be in your rndc.conf file.

Last edited by Mr. C.; 09-21-2008 at 08:04 PM.
 
Old 09-21-2008, 08:06 PM   #28
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
Ok I added an include line into my named.conf file.

include "/etc/bind/rndc.key";

and I removed the options part from the key and put it into rndc.conf.

Which I think is what I did last time?

Anyway now my error is:

Code:
rndc: get config key list: not found
which at least isn't so large as before!

I will attempt to put the include statement into rndc.conf too - maybe it will work?
 
Old 09-21-2008, 08:08 PM   #29
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
???

Code:
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.
with include "/etc/bind/rndc.key"; statement added.
 
Old 09-21-2008, 08:16 PM   #30
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
Ok reverted back to old config: no 'include' line in rndc.conf

- same error as before!

get config key list: not found

 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS Master Server Configuration in CentOS5.2 rajendrapoudel Linux - Server 41 09-11-2008 03:05 AM
how to configure master dns in windows2003 server and its slave dns in rhel5 suneellinux Linux - Newbie 1 04-11-2008 05:13 PM
DNS Server: Master/Slave Swakoo Linux - Networking 3 06-30-2006 04:58 AM
CAN I MAKE A SECONDARY _(slave) DNS FROM A PRIMARY (master)?? eder_michael11 Linux - General 0 05-29-2006 12:24 PM
Master/Slave server DNS emailssent Linux - Networking 2 10-04-2004 03:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration