diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-12-06 14:12:07 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-12-06 05:48:30 +0100 |
commit | 9f6f1b009866b8f697bcfad8b1451395732b78c1 (patch) | |
tree | f815444e650f33e61fa85d8e4b242771973b93eb /source4/dns_server/dlz_bind9.h | |
parent | 521e96ca751df072e5c71d3844ed5708b79ac69d (diff) | |
download | samba-9f6f1b009866b8f697bcfad8b1451395732b78c1.tar.gz samba-9f6f1b009866b8f697bcfad8b1451395732b78c1.tar.bz2 samba-9f6f1b009866b8f697bcfad8b1451395732b78c1.zip |
s4-dns: a dlz module for bind9
this module can be loaded into bind9 if bind9 has been built with the
--with-dlz-dlopen option. It provides access bind9 access to the
DNS records in SAMDB.
You can then start bind9 with this in named.conf:
dlz "Samba zone" {
database "dlopen /usr/lib/samba/modules/bind9/dlz_bind9.so";
};
See http://git.samba.org/tridge/bind9.git for a bind9 tree with the
dlz_dlopen driver. See also the discussion on the bind-workers mailing
list
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Mon Dec 6 05:48:30 CET 2010 on sn-devel-104
Diffstat (limited to 'source4/dns_server/dlz_bind9.h')
-rw-r--r-- | source4/dns_server/dlz_bind9.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/source4/dns_server/dlz_bind9.h b/source4/dns_server/dlz_bind9.h new file mode 100644 index 0000000000..8cf06807c1 --- /dev/null +++ b/source4/dns_server/dlz_bind9.h @@ -0,0 +1,49 @@ +/* + Unix SMB/CIFS implementation. + + bind9 dlz driver for Samba + + Copyright (C) 2010 Andrew Tridgell + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +/* + provide the minimal set of prototypes and defines for bind9 interop + The aim is to not require the bind9 source when building the + dlz_bind9 module + */ +typedef unsigned int isc_result_t; +typedef uint32_t dns_ttl_t; + +#define DLZ_DLOPEN_VERSION 1 + +/* result codes */ +#define ISC_R_SUCCESS 0 +#define ISC_R_NOMEMORY 1 +#define ISC_R_NOTFOUND 23 +#define ISC_R_FAILURE 25 + +/* log levels */ +#define ISC_LOG_INFO (-1) +#define ISC_LOG_NOTICE (-2) +#define ISC_LOG_WARNING (-3) +#define ISC_LOG_ERROR (-4) +#define ISC_LOG_CRITICAL (-5) + +/* a couple of opaque structures */ +struct dns_sdlzlookup; +typedef struct dns_sdlzlookup dns_sdlzlookup_t; +struct dns_sdlzallnodes; +typedef struct dns_sdlzallnodes dns_sdlzallnodes_t; |