"rndc.conf" is empty?
I've reinstalled Scientific Linux 6.4 x64 and restored some system files from backup. But some of bind files are troublesome.
I opened "/var/named/chroot/etc/rndc.conf", but this file is empty file. 0 byte.
And the result of "named-checkconf /var/named/chroot/etc/named.conf" is;
Quote:
/var/named/chroot/etc/named.conf:7: unknown key 'rndc.key'
|
The configuration files are here;
1. /var/named/chroot/var/named/named.conf
Code:
// named.conf for Red Hat caching-nameserver
options {
directory "/var/named";
};
controls {
inet 127.0.0.1 allow {localhost; } keys { "rndc-key"; };
};
// Add local zone definitions here.
zone "maestro.iptime.org" IN {
type master;
file "maestro.iptime.org.zone";
allow-update { key "rndc-key"; };
notify yes;
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "0.168.192.in-addr.arpa.zone";
allow-update { key "rndc-key"; };
notify yes;
};
include "/etc/rndc.key";
2. /var/named/chroot/var/named/maestro.iptime.org.zone
Code:
$TTL 86400
@ IN SOA maestro.iptime.org maestro.iptime.org (
2012032002 ;
28800;
7200;
604800;
86400;
)
IN NS maestro.iptime.org.
IN A 192.168.0.1
server IN A 192.168.0.1
3. /var/named/chroot/var/named/0.168.192.in-addr.arpa.zone
Code:
$TTL 86400
@ IN SOA @ root (
6;
28800;
7200;
604800;
86400;
)
IN NS server
1 IN PTR maestro.iptime.org
4. /etc/dhcp/dhcpd.conf
Code:
authoritative;
include "/etc/rndc.key";
# Server configuration:
server-identifier server;
ddns-domainname "maestro.iptime.org.";
ddns-rev-domainname "in-addr.arpa.";
ddns-update-style interim;
ddns-updates on;
ignore client-updates;
# This is the communication zone
zone maestro.iptime.org. {
primary 127.0.0.1;
key rndc-key;
}
default-lease-time 21600; # 6 hours
max-lease-time 43200; # 12 hours
# Client configuration:
option domain-name "maestro.iptime.org.";
option ip-forwarding off;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.100 192.168.0.200;
option routers 192.168.0.0; # default gateway
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option domain-name-servers 192.168.0.0;
zone 0.168.192.in-addr.arpa. {
primary 192.168.0.4;
key rndc-key;
}
zone localdomain. {
primary 192.168.0.4;
key rndc-key;
}
}
Any helpful comment would be appreciated.
Thanks in advance.