s3-ads-dns: Break dependency on lp_parm
[Samba/bjacke.git] / source3 / libads / dns.h
blobd57239d20cb99a297bffc090b502edc55de9d5b0
1 /*
2 * Unix SMB/CIFS implementation.
3 * Internal DNS query structures
4 * Copyright (C) Gerald Carter 2006.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, see <http://www.gnu.org/licenses/>.
20 #ifndef _ADS_DNS_H
21 #define _ADS_DNS_H
23 #include "libcli/dns/dns.h"
25 /* The following definitions come from libads/dns.c */
27 NTSTATUS ads_dns_lookup_ns(TALLOC_CTX *ctx,
28 const char *dns_hosts_file,
29 const char *dnsdomain,
30 struct dns_rr_ns **nslist,
31 int *numns);
32 NTSTATUS ads_dns_query_dcs(TALLOC_CTX *ctx,
33 const char *dns_hosts_file,
34 const char *realm,
35 const char *sitename,
36 struct dns_rr_srv **dclist,
37 int *numdcs );
38 NTSTATUS ads_dns_query_gcs(TALLOC_CTX *ctx,
39 const char *dns_hosts_file,
40 const char *realm,
41 const char *sitename,
42 struct dns_rr_srv **dclist,
43 int *numdcs );
44 NTSTATUS ads_dns_query_kdcs(TALLOC_CTX *ctx,
45 const char *dns_hosts_file,
46 const char *dns_forest_name,
47 const char *sitename,
48 struct dns_rr_srv **dclist,
49 int *numdcs );
50 NTSTATUS ads_dns_query_pdc(TALLOC_CTX *ctx,
51 const char *dns_hosts_file,
52 const char *dns_domain_name,
53 struct dns_rr_srv **dclist,
54 int *numdcs );
55 NTSTATUS ads_dns_query_dcs_guid(TALLOC_CTX *ctx,
56 const char *dns_hosts_file,
57 const char *dns_forest_name,
58 const struct GUID *domain_guid,
59 struct dns_rr_srv **dclist,
60 int *numdcs );
61 #endif /* _ADS_DNS_H */