mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-28 13:08:06 +00:00
Allow master zones to not have a 'file' option, to support non-rbt
databases. Zones with a nonpersistent database and no 'file' option will get an error logged at load time.
This commit is contained in:
parent
eac8e1d5fc
commit
4e29e682f6
@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: server.c,v 1.252 2000/11/15 18:11:32 gson Exp $ */
|
||||
/* $Id: server.c,v 1.253 2000/11/23 02:26:37 gson Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@ -1109,19 +1109,6 @@ configure_zone(dns_c_ctx_t *cctx, dns_c_zone_t *czone, dns_c_view_t *cview,
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
/*
|
||||
* Master zones must have 'file' set.
|
||||
*/
|
||||
if (czone->ztype == dns_c_zone_master &&
|
||||
czone->u.mzone.file == NULL) {
|
||||
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
|
||||
NS_LOGMODULE_SERVER, ISC_LOG_ERROR,
|
||||
"zone '%s': 'file' not specified",
|
||||
corigin);
|
||||
result = ISC_R_FAILURE;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
/*
|
||||
* "hints zones" aren't zones. If we've got one,
|
||||
* configure it and return.
|
||||
|
Loading…
x
Reference in New Issue
Block a user