LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 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
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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



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

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

All times are GMT -5. The time now is 07:25 AM.

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