I am pretty much new to bind DNS and during nsupdate , i am getting BADKEY error.I have /root/named/chroot/etc/rndc.key as below :-
key "rndc-test-key" {
algorithm hmac-md5 ;
secret "8d0WLaCU7N/jSyUdjxjAoQ==" ;
} ;
and /etc/rndc.conf
key "rndc-test-key" {
algorithm hmac-md5 ;
secret "8d0WLaCU7N/jSyUdjxjAoQ==" ;
} ;
In named.conf include "/etc/rndc.key"
; is present. So,which key i should pass to ?
I followed the suggestion gave by "Håkan Lindqvist" and I created just copy the key file in another file called ddns.key and I changed the key name in DDNSKEY. I did this for both named and dhcp.
After this the Dynamic DNS update works.
I still do not understand why reusing the same key/name is breaking the process.