LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-20-2012, 07:45 AM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 489

Rep: Reputation: 36
Can't open /etc/rndc.key: No such file or directory


I've installed scientific linux 6.2 x86 and installed bind and named.

I tried "start service named", then I got this error message.

Quote:
[root@maestro dynamicdns_setup]# service named start
Starting named:
Error in named configuration:
/etc/named.conf:22: open: /etc/rndc.key: file not found
[FAILED]
And,

Quote:
[root@maestro dynamicdns_setup]# rndc revonfig
rndc: neither /etc/rndc.conf nor /etc/rndc.key was found
[root@maestro dynamicdns_setup]# cat /etc/rc.conf
cat: /etc/rc.conf: No such file or directory
Please let me know how to resolve this problem.

Thanks in advance.
 
Old 03-20-2012, 07:59 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
by the sound of it, you need to actually configure BIND. You've jumped straight from installing the packages to trying to start it? Need to actually tell it what to do first, including rndc keys if applicable.
 
1 members found this post helpful.
Old 03-20-2012, 08:07 AM   #3
windstory
Member
 
Registered: Nov 2008
Posts: 489

Original Poster
Rep: Reputation: 36
acid_kewpie/ Actually I did,

Quote:
yum -y install dhcp
yum -y install bind*

And I restored backuped files.

Quote:
cp ddclient /usr/sbin
cp ddclient.conf /etc/ddclient
cp ddclient_start /etc/rc.d/init.d
cp dhcpd.conf /etc
chmod +x /etc/rc.d/init.d/ddclient_start
cp named.conf /var/named/chroot/etc
cp 0.168.192.in-addr.arpa.zone /var/named/chroot/var/named
cd /var/named/chroot/var/named
ln -s /var/named/chroot/var/named/myserver.dyndns.org.zone /var/named/myserver.dyndns.org.zone
ln -s /var/named/chroot/var/named/0.168.192.in-addr.arpa.zone /var/named/0.168.192.in-addr.arpa.zone
/usr/sbin/named -u named
chmod 770 /var/named/chroot/var/named
chmod 770 /var/named
chown -R named:named /var/named/chroot/etc
chown -R named:named /var/named/chroot/var
chmod -R u+rwx /var/named/chroot/etc
chmod -R u+rwx /var/named/chroot/var

Last edited by windstory; 03-20-2012 at 09:10 AM.
 
Old 03-20-2012, 08:29 AM   #4
windstory
Member
 
Registered: Nov 2008
Posts: 489

Original Poster
Rep: Reputation: 36
acid_kewpie/ Thanks a lot.

I found "rndc-confgen -a -b 512" command.
 
  


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
rndc: no key definition for name hemi_426 Linux - Server 3 05-06-2008 04:42 AM
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

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

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