summaryrefslogtreecommitdiff
path: root/lib/addns
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2020-12-22 17:23:16 +0100
committerBjoern Jacke <bjacke@samba.org>2020-12-23 12:45:35 +0000
commit985042d391e8124b157f21a6041ff9e17188483a (patch)
treefad48fcd80c469ba089a56b85103c9beb2535621 /lib/addns
parent98caa173b2471f963283bbb9d1c32ca8129f7e0b (diff)
downloadsamba-985042d391e8124b157f21a6041ff9e17188483a.tar.gz
dnsupdates: clean up all RRSets and not only type A
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13706 BUG: https://bugzilla.samba.org/show_bug.cgi?id=14244 Signed-off-by: Bjoern Jacke <bjacke@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib/addns')
-rw-r--r--lib/addns/dnsrecord.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/addns/dnsrecord.c b/lib/addns/dnsrecord.c
index 0d149373997..e6e205e6832 100644
--- a/lib/addns/dnsrecord.c
+++ b/lib/addns/dnsrecord.c
@@ -430,10 +430,10 @@ DNS_ERROR dns_create_update_request(TALLOC_CTX *mem_ctx,
if (!ERR_DNS_IS_OK(err)) goto error;
/*
- * Delete any existing A records
+ * Delete all existing RRsets from our name
*/
- err = dns_create_delete_record(req, hostname, QTYPE_A, DNS_CLASS_ANY,
+ err = dns_create_delete_record(req, hostname, QTYPE_ANY, DNS_CLASS_ANY,
&rec);
if (!ERR_DNS_IS_OK(err)) goto error;