Only delete A RR, not any RR for the FQDN

Make the delete command specific to A RRs. This prevents ddclient from
deleting other RRs unrelated to the dynamic address, but on the same
FQDN. This can be specifically a problem with KEY RRs when using SIG(0)
instead of symmetric keys.

Reported by: Wellie Chao
Bug report: http://sourceforge.net/p/ddclient/bugs/71/

Fixes #71


git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk@164 3873ddee-7413-0410-b6c4-c2c57c1ab35a
This commit is contained in:
wimpunk 2014-06-30 19:20:35 +00:00
parent 0a245f8c9b
commit 9912a765dd

View file

@ -3854,7 +3854,7 @@ zone $zone.
EoINSTR1
foreach (@hosts) {
$instructions .= <<EoINSTR2;
update delete $_.
update delete $_. A
update add $_. $config{$_}{'ttl'} A $ip
EoINSTR2
}