diff --git a/CHANGES b/CHANGES index 8e0f0159f6..17444017c8 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +1694. [bug] Report if the builtin views of "_default" / "_bind" + are defined in named.conf. [RT #12023] + 1692. [bug] Don't set -I, -L and -R flags when libcrypto is in /usr/lib. [RT #11971] diff --git a/lib/bind9/check.c b/lib/bind9/check.c index 862f05c161..23b183e2bf 100644 --- a/lib/bind9/check.c +++ b/lib/bind9/check.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: check.c,v 1.37.6.27 2004/06/04 02:33:00 marka Exp $ */ +/* $Id: check.c,v 1.37.6.28 2004/07/29 00:08:08 marka Exp $ */ #include @@ -1288,8 +1288,17 @@ bind9_check_namedconf(cfg_obj_t *config, isc_log_t *logctx, isc_mem_t *mctx) { "previous definition: %s:%u", key, file, line); result = tresult; - } else if (result != ISC_R_SUCCESS) + } else if (result != ISC_R_SUCCESS) { result = tresult; + } else if ((strcasecmp(key, "_bind") == 0 && + vclass == dns_rdataclass_ch) || + (strcasecmp(key, "_default") == 0 && + vclass == dns_rdataclass_in)) { + cfg_obj_log(view, logctx, ISC_LOG_ERROR, + "attempt to redefine builtin view " + "'%s'", key); + result = ISC_R_EXISTS; + } } if (tresult == ISC_R_SUCCESS) tresult = check_viewconf(config, voptions,