2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

checkpoint: multiple-DLZ functionality

- multiple DLZ's can be specified, including multiple DLZ's using
   the same driver; e.g., two different back-ends both loaded by the
   dlopen driver
 - new "search" option can be specified in a DLZ indicating whether
   this DLZ database should be searched for unknown zones.  The
   default is "yes".  If "no", then the zone can only be found by
   named if it's registered in the zone table, which happens if the
   zone is configured for dynamic updates, or if "dlz <dlzname>" is
   specified in the zone statement. (The latter functionality is
   incomplete in this commit).
This commit is contained in:
Evan Hunt
2012-03-03 22:43:38 -08:00
parent fd34a2fead
commit 954501715d
21 changed files with 298 additions and 109 deletions

View File

@@ -1672,7 +1672,8 @@ dns_sdlzfindzone(void *driverarg, void *dbdata, isc_mem_t *mctx,
static isc_result_t
dns_sdlzconfigure(void *driverarg, void *dbdata, dns_view_t *view)
dns_sdlzconfigure(void *driverarg, void *dbdata,
dns_view_t *view, dns_dlzdb_t *dlzdb)
{
isc_result_t result;
dns_sdlzimplementation_t *imp;
@@ -1684,7 +1685,8 @@ dns_sdlzconfigure(void *driverarg, void *dbdata, dns_view_t *view)
/* Call SDLZ driver's configure method */
if (imp->methods->configure != NULL) {
MAYBE_LOCK(imp);
result = imp->methods->configure(view, imp->driverarg, dbdata);
result = imp->methods->configure(view, dlzdb,
imp->driverarg, dbdata);
MAYBE_UNLOCK(imp);
} else {
result = ISC_R_SUCCESS;