Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
/*
* Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2000, 2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: rndc.conf,v 1.11 2007/06/19 23:46:59 tbox Exp $ */
/*
* Sample rndc configuration file.
*/
options {
default-server localhost;
default-key "key";
};
server localhost {
key "key";
};
key "cc64b3d1db63fc88d7cb5d2f9f57d258" {
algorithm hmac-md5;
secret "34f88008d07deabbe65bd01f1d233d47";
};
server "test1" {
key "cc64b3d1db63fc88d7cb5d2f9f57d258";
port 5353;
addresses { 10.53.0.1; };
};
key "key" {
algorithm hmac-md5;
secret "c3Ryb25nIGVub3VnaCBmb3IgYSBtYW4gYnV0IG1hZGUgZm9yIGEgd29tYW4K";
};
xen03:~# cat /usr/local/src/bind-9.5.0/bin/rndc/rndc.conf
/*
* Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2000, 2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: rndc.conf,v 1.11 2007/06/19 23:46:59 tbox Exp $ */
/*
* Sample rndc configuration file.
*/
options {
default-server localhost;
default-key "key";
};
server localhost {
key "key";
};
key "cc64b3d1db63fc88d7cb5d2f9f57d258" {
algorithm hmac-md5;
secret "34f88008d07deabbe65bd01f1d233d47";
};
server "test1" {
key "cc64b3d1db63fc88d7cb5d2f9f57d258";
port 5353;
addresses { 10.53.0.1; };
};
key "key" {
algorithm hmac-md5;
secret "c3Ryb25nIGVub3VnaCBmb3IgYSBtYW4gYnV0IG1hZGUgZm9yIGEgd29tYW4K";
};
# cat /usr/local/bind/etc/named.conf
Code:
options {
directory "/namedb";
version "I do not give any version info";
pid-file "/var/run/named.pid";
allow-transfer { none ;};
};
zone "." IN {
type hint;
file "/etc/named.root";
};
zone "satimis.com" {
type master ;
file "satimis.com.zone";
allow-query {any;};
allow-update { none; };
};
There is no entry for rndc.conf. Can I add another zone
Code:
zone "." IN {
type hint;
file "/etc/rndc.conf";
};
under "/etc/named.root" zone ?
and link rndc.conf as;
Code:
# ln - s /usr/local/src/bind-9.5.0/bin/rndc/rndc.conf /etc/local/bind/etc/rndc.conf
???
OR just copy it on the default directory /etc/local/bind/etc ?
zone "." IN {
type hint;
file "/etc/rndc.conf";
};
?
Aside from the fact that zone . should point to root servers, you already have
Code:
zone "." IN {
type hint;
file "/etc/named.root";
};
rndc needs a config, but it's a program in itself
Hi billymayday,
On running;
# /usr/local/bind/sbin/named -u named -t /usr/local/bind -c /etc/named.conf -g
Code:
[.....]
30-Oct-2008 01:31:18.870 automatic empty zone: B.E.F.IP6.ARPA
30-Oct-2008 01:31:18.871 default max-cache-size (33554432) applies: view _bind
30-Oct-2008 01:31:18.871 none:0: open: /usr/local/bind/etc/rndc.key: file not found
30-Oct-2008 01:31:18.871 couldn't add command channel 127.0.0.1#953: file not found
30-Oct-2008 01:31:18.871 none:0: open: /usr/local/bind/etc/rndc.key: file not found
30-Oct-2008 01:31:18.871 couldn't add command channel ::1#953: file not found
30-Oct-2008 01:31:18.882 ignoring config file logging statement due to -g option
[....]
it said "open: /usr/local/bind/etc/rndc.key: file not found" I'm trying to fix this problem. Whether it only happens running bind9 on foreground. I can ignore this warning.
Do you have rndc installed? rndc is a control program for bind - bind doesn't rely on it, but it requires the key (if setup for it) for rndc to communicate with bind. If you don't have rndc installed, or you don't plan on using it, comment out the references to the key in named.conf.
Do you have rndc installed? rndc is a control program for bind - bind doesn't rely on it, but it requires the key (if setup for it) for rndc to communicate with bind. If you don't have rndc installed, or you don't plan on using it, comment out the references to the key in named.conf.
$ apt-cache search rndc
Code:
gbindadmin - GTK+ configuration tool for bind9
libisccc0 - Command Channel Library used by BIND
libisccfg1 - Config File Handling Library used by BIND
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.