static void
usage(void) {
fprintf(stderr,
- "usage: %s [-achijklvz] [-pe [-x]] [-b] [-t directory] "
+ "usage: %s [-achijklnvz] [-pe [-x]] [-b] [-t directory] "
"[named.conf]\n",
isc_commandline_progname);
exit(EXIT_SUCCESS);
Synopsis
~~~~~~~~
-:program:`named-checkconf` [**-achjklnvz**] [**-pe** [**-x** ]] [**-b**]
+:program:`named-checkconf` [**-achijklnvz**] [**-pe** [**-x** ]] [**-b**]
[**-t** directory] {filename}
Description
if [ $ret -ne 0 ]; then echo_i "failed"; fi
status=$((status + ret))
# set -i to ignore deprecate warnings
-$CHECKCONF -i deprecated.conf 2>&1 | grep_v "rrset-order: order 'fixed' was disabled at compilation time" >checkconf.out$n.2
+$CHECKCONF -i deprecated.conf >checkconf.out$n.2 2>&1
grep '^.+$' <checkconf.out$n.2 >/dev/null && ret=1
if [ $ret -ne 0 ]; then echo_i "failed"; fi
status=$((status + ret))
+if ! $FEATURETEST --enable-dnstap; then
+ n=$((n + 1))
+ echo_i "checking named-checkconf disabled warnings ($n)"
+ ret=0
+ $CHECKCONF disabled.conf >checkconf.out$n.1 2>&1 && ret=1
+ grep "option 'dnstap-version' was not enabled at compile time" <checkconf.out$n.1 >/dev/null || ret=1
+fi
+# set -n to ignore disabled warnings
+$CHECKCONF -n disabled.conf >checkconf.out$n.2 2>&1
+[ -s checkconf.out$n.2 ] && ret=1
+if [ $ret -ne 0 ]; then echo_i "failed"; fi
+status=$((status + ret))
+
n=$((n + 1))
echo_i "checking named-checkconf servestale warnings ($n)"
ret=0
#define REQUIRE_PCTX_FLAGS(flags) \
REQUIRE((flags & ~(CFG_PCTX_NODEPRECATED | CFG_PCTX_NOOBSOLETE | \
- CFG_PCTX_NOEXPERIMENTAL | CFG_PCTX_BUILTIN)) == 0)
+ CFG_PCTX_NOEXPERIMENTAL | CFG_PCTX_BUILTIN | \
+ CFG_PCTX_ALLCONFIGS)) == 0)
isc_result_t
cfg_parse_file(const char *filename, const cfg_type_t *type, unsigned int flags,