summaryrefslogtreecommitdiff
path: root/source4/dns_server/dns_update.c
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2012-03-30 17:19:48 +0200
committerKai Blin <kai@samba.org>2012-03-30 19:26:52 +0200
commit60eb1621d2c3224a2c7e8bec947741446ecbc4b1 (patch)
tree23c49b49690c93653cd64d8cb52763ef144f4ef5 /source4/dns_server/dns_update.c
parent1e24997e3e4bc04395d6ecf470faedb632b6ec68 (diff)
downloadsamba-60eb1621d2c3224a2c7e8bec947741446ecbc4b1.tar.gz
s4 dns: Allow updating PTR records.
Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Fri Mar 30 19:26:52 CEST 2012 on sn-devel-104
Diffstat (limited to 'source4/dns_server/dns_update.c')
-rw-r--r--source4/dns_server/dns_update.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/dns_server/dns_update.c b/source4/dns_server/dns_update.c
index d6b764087e2..3473a70f552 100644
--- a/source4/dns_server/dns_update.c
+++ b/source4/dns_server/dns_update.c
@@ -331,6 +331,10 @@ static WERROR dns_rr_to_dnsp(TALLOC_CTX *mem_ctx,
rrec->rdata.srv_record.target);
W_ERROR_HAVE_NO_MEMORY(r->data.srv.nameTarget);
break;
+ case DNS_QTYPE_PTR:
+ r->data.ptr = talloc_strdup(mem_ctx, rrec->rdata.ptr_record);
+ W_ERROR_HAVE_NO_MEMORY(r->data.ptr);
+ break;
case DNS_QTYPE_MX:
r->data.mx.wPriority = rrec->rdata.mx_record.preference;
r->data.mx.nameTarget = talloc_strdup(mem_ctx,