LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   rndc: no key definition for name (http://www.linuxquestions.org/questions/linux-server-73/rndc-no-key-definition-for-name-640194/)

hemi_426 05-06-2008 01:32 AM

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

bathory 05-06-2008 02:52 AM

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

hemi_426 05-06-2008 04:57 AM

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 ?

bathory 05-06-2008 05:42 AM

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


All times are GMT -5. The time now is 08:01 AM.