bool list_zones = false;
bool print = false;
bool nodeprecate = false;
+ bool allconfigs = false;
unsigned int flags = 0;
unsigned int checkflags = BIND_CHECK_PLUGINS | BIND_CHECK_ALGORITHMS;
/*
* Process memory debugging argument first.
*/
-#define CMDLINE_FLAGS "acdhijlm:t:pvxz"
+#define CMDLINE_FLAGS "acdhijlm:nt:pvxz"
while ((c = isc_commandline_parse(argc, argv, CMDLINE_FLAGS)) != -1) {
switch (c) {
case 'm':
case 'm':
break;
+ case 'n':
+ allconfigs = true;
+ break;
+
case 't':
result = isc_dir_chroot(isc_commandline_argument);
if (result != ISC_R_SUCCESS) {
if (nodeprecate) {
cfg_parser_setflags(parser, CFG_PCTX_NODEPRECATED, true);
}
+ if (allconfigs) {
+ cfg_parser_setflags(parser, CFG_PCTX_ALLCONFIGS, true);
+ }
cfg_parser_setcallback(parser, directory_callback, NULL);
CHECK(cfg_parse_file(parser, conffile, &cfg_type_namedconf, &config));
Synopsis
~~~~~~~~
-:program:`named-checkconf` [**-achjlvz**] [**-p** [**-x** ]] [**-t** directory] {filename}
+:program:`named-checkconf` [**-achjlnvz**] [**-p** [**-x** ]] [**-t** directory] {filename}
Description
~~~~~~~~~~~
This option ignores warnings on deprecated options.
+.. option:: -n
+
+ Do not error on options that are disabled in this build.
+
.. option:: -p
This option prints out the :iscman:`named.conf` and included files in canonical form if
#define CFG_PCTX_NODEPRECATED (1 << 1)
#define CFG_PCTX_NOOBSOLETE (1 << 2)
#define CFG_PCTX_NOEXPERIMENTAL (1 << 3)
+#define CFG_PCTX_ALLCONFIGS (1 << 4)
/*@{*/
/*%
clause->name);
CHECK(ISC_R_FAILURE);
}
- if ((clause->flags & CFG_CLAUSEFLAG_NOTCONFIGURED) != 0) {
+ if ((pctx->flags & CFG_PCTX_ALLCONFIGS) == 0 &&
+ (clause->flags & CFG_CLAUSEFLAG_NOTCONFIGURED) != 0)
+ {
cfg_parser_error(pctx, 0,
"option '%s' was not "
"enabled at compile time",