4 msgunexpected RCODE (SERVFAIL)
3 msg'named' startup on Fedora Core 6 (/etc/init.d/n...
5 msgCleaning up DNS zone files...
2 msgit would be nice if NXDOMAIN zonoes could be co...

Asymmetric keys with rndc-confgen?
\ Gushi (17 Jan 2007)
. \ Mark Andrews (17 Jan 2007)

6 msgBind 9.2.5 and IPv6 fails with client.c:1325: u...
3 msgMeasuring response times?
7 msgBind9 Crazy-high CPU on Linux
2 msgbind9 chaotic freeze problem?
6 msgIDN, dig and underscore
2 msgMaximum Recursion Clients
5 msgDomainKeys Questions
2 msgCan't see internal view on bind server
13 msgStrange: My Bind (8.4.6) freezes randomly
9 msgIN-ADDR.ARPA Zone Delegations
5 msgquery vs. recursion?
2 msgBIND 9.2.4 on a Dell 1655MC
4 msgBind Stats
9 msgZone transfer master -> slave using views on...
7 msgquick questrion about this List
Subject:Re: Asymmetric keys with rndc-confgen?
Group:Bind-users
From:Mark Andrews
Date:17 Jan 2007


 

> Every time I've seen rndc-conf generat an hmac-md5 key, the text of the
> key has been the same everywhere.

rndc uses a *shared* secret.

> Yesterday, using 9.3.3 (I believe), I got the following result (at the
> end of this).

Which should be impossible given how it is printed.

} else {
printf("\
# Start of rndc.conf\n\
key \"%s\" {\n\
algorithm hmac-md5;\n\
secret \"%.*s\";\n\
};\n\
\n\
options {\n\
default-key \"%s\";\n\
default-server %s;\n\
default-port %d;\n\
};\n\
# End of rndc.conf\n\
\n\
# Use with the following in named.conf, adjusting the allow list as needed:\n\
# key \"%s\" {\n\
# algorithm hmac-md5;\n\
# secret \"%.*s\";\n\
# };\n\
# \n\
# controls {\n\
# inet %s port %d\n\
# allow { %s; } keys { \"%s\"; };\n\
# };\n\
# End of named.conf\n",
keyname,
(int)isc_buffer_usedlength(&key_txtbuffer),
(char *)isc_buffer_base(&key_txtbuffer),
keyname, serveraddr, port,
keyname,
(int)isc_buffer_usedlength(&key_txtbuffer),
(char *)isc_buffer_base(&key_txtbuffer),
serveraddr, port, serveraddr, keyname);
}

> Is there some syntax that will cause a public/private key by default
> with rndc.confgen?

No.

> Note: this is not the key I am using, the one I am using IS the same in
> both rndc.conf and the bind include file.
>
> (PS: Maybe asymetric is not the right word?)
>
> -Dan
>
>
> # Start of rndc.conf
> key "rndc-key" {
> algorithm hmac-md5;
> secret "NlUtbtQyzxVpfQ51W1jEu+UsBN0A3vXs4K2d5Ob0Tzs=";
> };
>
> options {
> default-key "rndc-key";
> default-server 127.0.0.1;
> default-port 953;
> };
> # End of rndc.conf
>
> # Use with the following in named.conf, adjusting the allow list as
> needed:
> # key "rndc-key" {
> # algorithm hmac-md5;
> # secret "K5YfO1+dX5ku5sXjzSrJyw==";
> # };
> #
> # controls {
> # inet 127.0.0.1 port 953
> # allow { 127.0.0.1; } keys { "rndc-key"; };
> # };
> # End of named.conf
>
>
--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: Mark_Andrews




© 2004-2008 readlist.com