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 |
You should change in rndc.conf the
Quote:
Code:
default-key "rndc-key"; Quote:
Regards |
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 ? |
Quote:
Regards |
All times are GMT -5. The time now is 06:21 PM. |