diff options
author | Kai Blin <kai@samba.org> | 2012-03-30 17:19:48 +0200 |
---|---|---|
committer | Kai Blin <kai@samba.org> | 2012-03-30 19:26:52 +0200 |
commit | 60eb1621d2c3224a2c7e8bec947741446ecbc4b1 (patch) | |
tree | 23c49b49690c93653cd64d8cb52763ef144f4ef5 | |
parent | 1e24997e3e4bc04395d6ecf470faedb632b6ec68 (diff) | |
download | samba-60eb1621d2c3224a2c7e8bec947741446ecbc4b1.tar.gz samba-60eb1621d2c3224a2c7e8bec947741446ecbc4b1.tar.bz2 samba-60eb1621d2c3224a2c7e8bec947741446ecbc4b1.zip |
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
-rw-r--r-- | source4/dns_server/dns_update.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/dns_server/dns_update.c b/source4/dns_server/dns_update.c index d6b764087e..3473a70f55 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, |