LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-23-2013, 12:11 AM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 489

Rep: Reputation: 36
"rndc.conf" is empty?


"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.
 
Old 07-23-2013, 01:52 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
http://linux.die.net/man/5/rndc.conf
 
1 members found this post helpful.
  


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
bind rndc not work:"rndc: connect failed: timed out" echox Linux - Server 3 11-07-2020 09:36 AM
"http://localhost/" gives access error & /etc/apache2/httpd.conf is empty Talaash Linux - Software 3 03-01-2008 06:10 PM
Gentoo VNC, empty dialog box !! "Question" window is empty ! TheHushedCaskeT Linux - Software 0 02-01-2005 10:14 PM
service named error "rndc: conenct failed: connection refused" Reu Linux - General 1 07-12-2004 01:34 PM
bind and named and "rndc: connect failed: connection refused" coffee9876 Linux - Networking 3 12-16-2003 10:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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