LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't open /etc/rndc.key: No such file or directory (https://www.linuxquestions.org/questions/linux-newbie-8/cant-open-etc-rndc-key-no-such-file-or-directory-935456/)

windstory 03-20-2012 07:45 AM

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.

acid_kewpie 03-20-2012 07:59 AM

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.

windstory 03-20-2012 08:07 AM

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

windstory 03-20-2012 08:29 AM

acid_kewpie/ Thanks a lot.

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


All times are GMT -5. The time now is 06:33 AM.