named-checkconf has errors, but Starting named: FAILED
named-checkconf has errors, but Starting named: FAILED
I solved "named-checonf" problem at thread "named-checkconf has errors" http://www.linuxquestions.org/questi...errors-916132/. But "service named start" has failed. Code:
[root@localhost bin]# service named start Thanks in advance. |
check the logs...
most likely /var/log/messages |
fukawi1/ here.
Quote:
1. '/etc/named.conf', but 'service start' searches '/var/named/chroot/etc/named.conf'. 2. '/etc/rndc.key: permission denied' |
Hi,
You're probably using bind-chroot. Could you check if /etc/named.conf is symbolic link to /var/named/chroot/etc/named.conf? Aslo make sure /var/named/chroot/etc is owned recursively by user and group bind |
can you post your named.conf file
Code:
#cat /etc/named.conf because it is never there by default as you need to copy it from its default location either to /etc/ or /var/named/chroot/etc |
aazkan/ I hace a file named.conf inside /var/named/chroot/etc/
"/var/named/chroot/etc is owned recursively by user and group bind", I could not understand. deep27ak/ This is /etc/named.conf. Code:
options { |
Code:
options { Have you generated any rndc key for your bind? If not better to comment the rndc.key statements in named.conf make sure to take a backup before making any changes one more question where are all your configuration files located? like zone files, named.rfc1912.zones and other related files?? Code:
/etc or /var/named/chroot/etc |
deep27ak/
Have you generated any rndc key for your bind? Yes. "If not better to comment the rndc.key statements in named.conf" - I tried with your code, but browser could not open "myserver.dyndns.org". "configuration files" are located at "/var/named/chroot/etc" Quote:
|
As per your log messages
Code:
localhost named[2912]: /etc/named.conf:22: open: /etc/rndc.key: permission denied line 22 shows a error but I don't see a line 22 in your named.conf as it ends in line 20 please correct me if I am wrong |
deep27ak/ I solved "/etc/rndc.key: permission denied" with "chmod 644".
And I erased thes two lines. Quote:
And this is the named part of messages after rebooting. Quote:
|
Quote:
Code:
-rw-r--r-- 1 root root 77 Nov 30 07:48 rndc.key quite surprised?? |
deep27ak/ Yes, yesterday I did by googling.
At now I am finding the answer of this problem. Quote:
Quote:
Quote:
|
Please don't mind my questions, Just trying to learn:scratch:
Actually I am still not able to understand the resolution As far as I know by default the bind is in Code:
/usr/share/doc/bind-x.x |
deep27ak/
Quote:
|
All times are GMT -5. The time now is 07:54 AM. |