nsupdate improperly deletes KEY
Brought to you by:
supersandro2000,
wimpunk
Line 3857 of revision 163 of ddclient improperly deletes all/any resource record. What it should do instead is just delete "A" resource records.
Changing this line:
update delete $_.
to this:
update delete $_. A
would fix the problem. Right now it deletes even KEY RRs, which means that after one update, the KEY disappears, thus preventing future updates. I am using SIG(0) keys (RSASHA1) rather than symmetric keys.
I posted a message on the mailinglist about it. I hope the original poster of the patch will comment on this.
With the configuration suggested by ddns-confgen(1), that is, using something like:
Then there are no KEY RRs involved and this problem does not occur (double-checked with BIND 9.8.4). Can you share the relevant parts of your DDNS configuration with us so we understand in which cases this problem actually occurs?
That being said, it is a good idea to be specific in the delete command anyway, since there may be other records which should not be removed as a side-effect of deleting the dynamic A record. I will prepare a patch.
https://github.com/wimpunk/ddclient/pull/4
Fixed in [r164].
Related
Commit: [r164]