4

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 ?

stambata
  • 1,734

1 Answers1

0

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.

Zioalex
  • 137