LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 05-06-2008, 12:32 AM   #1
hemi_426
Member
 
Registered: Apr 2008
Location: KSA-jeddah
Distribution: CentOS, gentoo, slackware
Posts: 80

Rep: Reputation: 15
Question rndc: no key definition for name


i know it have been posted befor
but didnt help me ,

when i run #rndc status
rndc: no key definition for name 2222255555
!!!!!

WHATS WRONG ???

###########

now the name in my named.conf ,rndc.key and my rndc.conf is rndckey

and here is a port of all the files :

named.conf:

options {
directory "/conf";
pid-file "/var/run/named.pid";
statistics-file "/var/run/named.stats";
dump-file "/var/run/named.db";

# hide our "real" version number
version "[secured]";
};

controls {
inet 127.0.0.1 allow { 127.0.0.1; } keys { rndckey; };
};

key "rndckey" {
algorithm "hmac-md5";
secret "2222255555";
};

# The root nameservers
zone "." {
type hint;
file "db.rootcache";
};

# localhost - forward zone
zone "localhost" {
type master;
file "db.localhost";
notify no;
};

# localhost - inverse zone
zone "0.0.127.in-addr.arpa" {
type master;
file "db.127.0.0";
notify no;
};

#################################################

rndc.conf

#

options {
default-server 127.0.0.1;
default-key "2222255555";
};

server 127.0.0.1 {
key "2222255555";
};

key "rndckey" {
algorithm "hmac-md5";
secret "2222255555";
};
###############################################

rndc.key

# rndc.key
key "rndckey" {
algorithm hmac-md5;
secret "2222255555";
};
########

thanks
 
Old 05-06-2008, 01:52 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,897

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
You should change in rndc.conf the
Quote:
default-key "2222255555";
with
Code:
default-key "rndc-key";
You can also remove (or comment) the
Quote:
server 127.0.0.1 {
key "2222255555";
};
as it's superfluous.

Regards
 
Old 05-06-2008, 03:57 AM   #3
hemi_426
Member
 
Registered: Apr 2008
Location: KSA-jeddah
Distribution: CentOS, gentoo, slackware
Posts: 80

Original Poster
Rep: Reputation: 15
SOLVED!!!

i ran this
#/usr/sbin/rndc-confgen
it got me a rndc.conf file
i copied it where i want it to be
then i ran
#rndc status *then i got those
number of zones: 2
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
recursive clients: 0/1000
tcp clients: 0/100
server is up and running

ok , this rndc is making my DNS requests secured right ?
 
Old 05-06-2008, 04:42 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,897

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Quote:
ok , this rndc is making my DNS requests secured right ?
No, rndc is a utility that allows you to do some kind of administration of the named server. Read the man page for what it's used for.

Regards
 
  


Reply

Tags
definition, key, name


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Bind | rndc.key the_gripmaster Linux - Server 1 05-04-2007 07:00 AM
rndc: no key definition for name rncd.key forkvoid Linux - Networking 2 12-29-2003 03:40 PM
rndc: no key definition stand Linux - Networking 1 11-30-2002 07:31 AM
rndc: get key definition: not found Grum Linux - Networking 1 07-16-2002 11:28 AM
rndc: get key definition: not found error Grum Linux - General 1 05-24-2002 09:48 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration