2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 3 of the License, or
5 * (at your option) any later version.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, see <http://www.gnu.org/licenses/>.
16 #ifndef __LIB_ADDNS_DNSQUERY_SRV_H__
17 #define __LIB_ADDNS_DNSQUERY_SRV_H__
21 #include "libcli/util/ntstatus.h"
22 #include "libcli/dns/dns.h"
24 struct tevent_req
*ads_dns_query_srv_send(
26 struct tevent_context
*ev
,
27 uint32_t async_dns_timeout
,
30 NTSTATUS
ads_dns_query_srv_recv(
31 struct tevent_req
*req
,
33 struct dns_rr_srv
**srvs
,
35 NTSTATUS
ads_dns_query_srv(
37 uint32_t async_dns_timeout
,
40 struct dns_rr_srv
**srvs
,
43 char *ads_dns_query_string_dcs(TALLOC_CTX
*mem_ctx
, const char *realm
);
44 char *ads_dns_query_string_gcs(TALLOC_CTX
*mem_ctx
, const char *realm
);
45 char *ads_dns_query_string_kdcs(TALLOC_CTX
*mem_ctx
, const char *realm
);
46 char *ads_dns_query_string_pdc(TALLOC_CTX
*mem_ctx
, const char *realm
);
49 char *ads_dns_query_string_dcs_guid(
51 const struct GUID
*domain_guid
,
54 #endif /* _ADS_DNS_H */