dlz_bind9: Do not remove LDB record in subrdataset and delrdataset
authorAmitay Isaacs <amitay@gmail.com>
Wed, 8 Feb 2012 23:17:02 +0000 (10:17 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Tue, 21 Feb 2012 07:24:30 +0000 (18:24 +1100)
commit169db333033b72b6f9ac1e7b23f0f2c151218c1f
treede081df6132180d0b9e339b83d0fc8f1d36b57a9
parent89586ed1643101b3b94bba1fdcdc821026a00e65
dlz_bind9: Do not remove LDB record in subrdataset and delrdataset

This fixes the problem of large number of deleted records in DNS
partitions due to frequent dynamic dns updates from windows
clients. The typical pattern for dynamic update get converted
into subrdataset() followed by addrdataset().  If there are no
dnsRecord attributes left as a result of sub/delrdataset(),
leave the LDB entry for dns name as is. The subsequent
addrdataset() would add the dnsRecord attribute without
re-creating the same entry.
source4/dns_server/dlz_bind9.c