#define ERR_IS_MXCNAME 6
#define ERR_IS_SRVCNAME 7
-static const char *dbtype[] = { "qpzone" };
+static const char *dbtype[] = { ZONEDB_DEFAULT };
int debug = 0;
const char *journal = NULL;
AC_SUBST([DTRACE])
#
-# Which should be the default zone database, RBTDB or QPDB?
-# [pairwise: --with-zonedb=qp, --with-zonedb=rbt]
+# Which should be the default zone database, RBTDB, QPDB (based on dns_qp),
+# or QPZONE (based on dns_qpmulti)?
+# [pairwise: --with-zonedb=qp, --with-zonedb=qpzone, --with-zonedb=rbt]
#
AC_ARG_WITH([zonedb],
- [AS_HELP_STRING([--with-zonedb=detect],[specify default zone database type (default is "qp")])],
+ [AS_HELP_STRING([--with-zonedb=detect],[specify default zone database type (default is "qpzone")])],
[],[with_zonedb=qp])
-zonedb="qp"
+zonedb="qpzone"
AS_CASE([$with_zonedb],
[RBT*|rbt*],[zonedb="rbt"],
- [QP*|qp*],[],
+ [QP|qp],[zonedb="qp"],
+ [QPZ*|qpz*],[],
[AC_MSG_ERROR([Unknown zone database type])]
)
AC_DEFINE_UNQUOTED([ZONEDB_DEFAULT], ["$zonedb"], [Default zone database type])
#
-# Which should be the default cache database, RBTDB or QPDB?
+# Which should be the default zone database, RBTDB or QPDB (based on dns_qp)?
# [pairwise: --with-cachedb=qp, --with-cachedb=rbt]
#
AC_ARG_WITH([cachedb],
isc_result_t
dns_zone_rpz_enable(dns_zone_t *zone, dns_rpz_zones_t *rpzs,
dns_rpz_num_t rpz_num) {
- /*
- * Only RBTDB zones can be used for response policy zones,
- * because only they have the code to create the summary data.
- * Only zones that are loaded instead of mmap()ed create the
- * summary data and so can be policy zones.
- */
- if (strcmp(zone->db_argv[0], "qp") != 0) {
- return (ISC_R_NOTIMPLEMENTED);
- }
-
/*
* This must happen only once or be redundant.
*/