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,598
  • 3
  • 13
  • 18
SecureTech
  • 141
  • 1
  • 2
  • You are speaking of keys which appear to have been set up for the use with `rndc` but you appear to try to use them for some other purpose altogether. Are you positive that it would not make more sense to simply leave rndc and its keys alone (assuming rndc works correctly) and create a new key specific to your other purpose (dynamic updates?). – Håkan Lindqvist Aug 11 '16 at 22:01

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.

Alex
  • 101
  • 2