LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-31-2014, 01:14 AM   #1
pavanchauhan
Member
 
Registered: Nov 2013
Posts: 36

Rep: Reputation: Disabled
Unhappy unknown key 'rndc'


i have install bind and i'm facing problem in service restart, and i 'm getting error
error in named configuaration
"/etc/named.conf:8 unknown key 'rndckey'

My Installation step

# yum install bind* -y
# vim /etc/named.conf
[root@server named]# cat /etc/named.conf
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
};

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

zone "." IN {
type hint;
file "named.ca";
};

zone "localdomain" IN {
type master;
file "localdomain.zone";
allow-update { none; };
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};

zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "named.ip6.local";
allow-update { none; };
};

zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update { none; };
};

zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
allow-update { none; };
};

zone "chul.com" IN {
type master;
file "chul.zone";
allow-update { none; };
};

zone "80.168.192.in-addr.arpa" IN {
type master;
file "80.zone";
allow-update { none; };
};

include "/etc/rndc.key";

[root@server named]# pwd
/var/named
[root@server named]# ls
80.zone dynamic named.ca named.localhost
chroot localdomain.zone named.empty named.loopback
chul.zone localhost.zone named.ip6.local named.zero
data named.broadcast named.local slaves


[root@server named]# /etc/init.d/named restart
Stopping named: [ OK ]
Starting named:
Error in named configuration:
/etc/named.conf:8: unknown key 'rndckey'
[FAILED]
umount: /var/named/chroot/var/named: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))


Please sir tell me what is the issue, i'm wathcing this is steps in web and their named service had succesfully start but my named service not start.
if i comment like this #controls {
# inet 127.0.0.1 allow { localhost; } keys { #rndckey; };
#};
this line when i'm getting named service start succesfully. if i does not comment this line while i'm facing error. Please sir what's the issue. Anybody help me

Last edited by pavanchauhan; 01-31-2014 at 01:17 AM.
 
Old 01-31-2014, 02:46 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
Hi,
Quote:
<snip>
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
<snip>
include "/etc/rndc.key";
Make sure that the rndc key name is the same in both named.conf and the included rndc.key.
From the above snippet it should be "rndckey" in both files.
 
  


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
rndc.key and rndc.conf cccc Debian 2 02-22-2009 08:07 PM
BIND - about rndc.key satimis Linux - Server 15 10-30-2008 08:19 PM
rndc: no key definition for name hemi_426 Linux - Server 3 05-06-2008 04:42 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:52 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