diff options
author | Kai Blin <kai@samba.org> | 2012-03-09 10:43:27 +0100 |
---|---|---|
committer | Kai Blin <kai@samba.org> | 2012-03-09 12:27:37 +0100 |
commit | 9a93f43cebcb6b677548919f57badc1a857cb13b (patch) | |
tree | 5dd5dd96e06bab39d5265aefdb9ba1ed7484046a /source4 | |
parent | 193078117d09732fa9c812303f505e59cc047c2b (diff) | |
download | samba-9a93f43cebcb6b677548919f57badc1a857cb13b.tar.gz samba-9a93f43cebcb6b677548919f57badc1a857cb13b.tar.bz2 samba-9a93f43cebcb6b677548919f57badc1a857cb13b.zip |
s4 dns: Add support for PTR queries.
Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Fri Mar 9 12:27:38 CET 2012 on sn-devel-104
Diffstat (limited to 'source4')
-rw-r--r-- | source4/dns_server/dns_query.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/dns_server/dns_query.c b/source4/dns_server/dns_query.c index 5320e21f5c..42aa11f009 100644 --- a/source4/dns_server/dns_query.c +++ b/source4/dns_server/dns_query.c @@ -66,6 +66,9 @@ static WERROR create_response_rr(const struct dns_name_question *question, ans[ai].rdata.soa_record.expire = rec->data.soa.expire; ans[ai].rdata.soa_record.minimum = rec->data.soa.minimum; break; + case DNS_QTYPE_PTR: + ans[ai].rdata.ptr_record = talloc_strdup(ans, rec->data.ptr); + break; default: return DNS_ERR(NOT_IMPLEMENTED); } @@ -109,7 +112,8 @@ static WERROR handle_question(struct dns_server *dns, (recs[ri].wType != question->question_type)) { continue; } - create_response_rr(question, &recs[ri], &ans, &ai); + werror = create_response_rr(question, &recs[ri], &ans, &ai); + W_ERROR_NOT_OK_RETURN(werror); } if (ai == 0) { |