AW: Problem with rndc.key (invalid key)
Roland Schmid
support at messegrafikschreiber.de
Fri Jun 15 08:01:03 UTC 2007
> Since you added the controls statement referencing the key, did you
> also add the key statement to named.conf? Make sure to add it before
> the controls statement.
>
> rndc.key is only read in the absence of a controls statement. And
> named does not read the other configuration file, rndc.conf.
Hi,
I think I did all well, but something must be wrong.
Or I just have to reboot the machine. I will post my named.conf,
named.conf.options and rndc.conf
/etc/bind/named.conf
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in
/etc/bind/named.conf.local
include "/etc/bind/named.conf.options";
// prime the server with knowledge of the root servers
zone "." {
type hint;
file "/etc/bind/db.root";
};
// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
zone "localhost" {
type master;
file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
// zone "com" { type delegation-only; };
// zone "net" { type delegation-only; };
// From the release notes:
// Because many of our users are uncomfortable receiving undelegated
answers
// from root or top level domains, other than a few for whom that behaviour
// has been trusted and expected for quite some length of time, we have now
// introduced the "root-delegations-only" feature which applies
delegation-only
// logic to all top level domains, and to the root domain. An exception
list
// should be specified, including "MUSEUM" and "DE", and any other top
level
// domains from whom undelegated responses are expected and trusted.
// root-delegation-only exclude { "DE"; "MUSEUM"; };
include "/etc/bind/named.conf.local";
/etc/bind/named.conf.local
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
~
/etc/bind/named.conf.options
options {
directory "/etc/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you might need to uncomment the query-source
// directive below. Previous versions of BIND always asked
// questions using port 53, but BIND 8.1 and later use an
unprivileged
// port by default.
// query-source address * port 53;
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
// forwarders {
// 0.0.0.0;
// };
auth-nxdomain no; # conform to RFC1035
};
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "ns2"; };
};
include "/etc/bind/rndc.key";
~
/etc/bind/rndc.conf
options {
default-key "ns2";
default-server 127.0.0.1;
default-port 953;
};
include "/etc/bind/rndc.key";
/etc/bind/rndc.key
key "ns2" {
algorithm hmac-md5;
secret "hash-string";
};
Best regards
Roland
More information about the bind-users
mailing list