rndc connect failed connection refused

Rodolphe Mosca kil at free.fr
Mon May 23 04:10:48 UTC 2005


Hello,

I'm sorry, I read a lot of documentation and I attempt to configure my=20
rndc.conf and rndc.key but always I have : connection refused !

I use command dnssec-keygen :
 dnssec-keygen -a hmac-md5 -b 256 -n HOST aforsiori.key

It generate to files :
Kaforsiori.key.+157+37451.key
and
Kaforsiori.key.+157+37451.private

and what ??
the first file content :
		aforsiori.key. IN KEY 512 3 157 1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=3D

the second :
		Private-key-format: v1.2
		Algorithm: 157 (HMAC_MD5)
		Key: 1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=3D

so I put in named.conf :
        		algorithm hmac-md5;
        		secret "1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=3D";
		};

		controls {
        		inet 127.0.0.1 allow { 127.0.0.1; } keys { /etc/bind/rndc.key; =
};
		};

and in rndc.conf :
		options {
		        default-server  localhost;
		        default-key     "aforsiori.key";
		};

		server localhost {
        		key     "aforsiori.key";
		};
		Include "/etc/bind/rndc.key";

and finaly, in rndc.key :
		key "aforsiori.key" {
		        algorithm hmac-md5;
		        secret "1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=3D";
		};


What can I do... I don't understand how I use the key files ! help me !



More information about the bind-users mailing list