Debian Codegraph @

doc/man/named-checkconf.1in

raw
1 .\" Man page generated from reStructuredText
2 .\" by the Docutils 0.22.4 manpage writer.
3 .
4 .
5 .nr rst2man-indent-level 0
6 .
7 .de1 rstReportMargin
8 \\$1 \\n[an-margin]
9 level \\n[rst2man-indent-level]
10 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
11 -
12 \\n[rst2man-indent0]
13 \\n[rst2man-indent1]
14 \\n[rst2man-indent2]
15 ..
16 .de1 INDENT
17 .\" .rstReportMargin pre:
18 . RS \\$1
19 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
20 . nr rst2man-indent-level +1
21 .\" .rstReportMargin post:
22 ..
23 .de UNINDENT
24 . RE
25 .\" indent \\n[an-margin]
26 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
27 .nr rst2man-indent-level -1
28 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
30 ..
31 .TH "NAMED-CHECKCONF" "1" "@RELEASE_DATE@" "@PACKAGE_VERSION@" "BIND 9"
32 .SH NAME
33 named-checkconf \- named configuration file syntax checking tool
34 .SH SYNOPSIS
35 .sp
36 \fBnamed\-checkconf\fP [\fB\-achjklvz\fP] [\fB\-p\fP [\fB\-x\fP ]] [\fB\-t\fP directory] {filename}
37 .SH DESCRIPTION
38 .sp
39 \fBnamed\-checkconf\fP checks the syntax, but not the semantics, of a
40 \fBnamed\fP \%<#\:std-iscman-named> configuration file. The file, along with all files included by it, is parsed and checked for syntax
41 errors. If no file is specified,
42 \fB@sysconfdir@/named.conf\fP is read by default.
43 .sp
44 Note: files that \fBnamed\fP \%<#\:std-iscman-named> reads in separate parser contexts, such as
45 \fBrndc.conf\fP or \fBrndc.key\fP, are not automatically read by
46 \fBnamed\-checkconf\fP\&. Configuration errors in these files may cause
47 \fBnamed\fP \%<#\:std-iscman-named> to fail to run, even if \fBnamed\-checkconf\fP was
48 successful. However, \fBnamed\-checkconf\fP can be run on these files
49 explicitly.
50 .SH OPTIONS
51 .INDENT 0.0
52 .TP
53 .B \-a
54 Don\(aqt check the \fIdnssec\-policy\fP\(aqs DNSSEC key algorithms against
55 those supported by the crypto provider. This is useful when checking
56 a \fInamed.conf\fP intended to be run on another machine with possibly a
57 different set of supported DNSSEC key algorithms.
58 .UNINDENT
59 .INDENT 0.0
60 .TP
61 .B \-h
62 This option prints the usage summary and exits.
63 .UNINDENT
64 .INDENT 0.0
65 .TP
66 .B \-j
67 When loading a zonefile, this option instructs \fBnamed\fP \%<#\:std-iscman-named> to read the journal if it exists.
68 .UNINDENT
69 .INDENT 0.0
70 .TP
71 .B \-k
72 Check the \fIdnssec\-policy\fP\(aqs DNSSEC keys against the key files in
73 the \fIkey\-directory\fP\&. This is useful when checking a \fInamed.conf\fP
74 to ensure a DNSSEC policy matches the existing keys.
75 .UNINDENT
76 .INDENT 0.0
77 .TP
78 .B \-l
79 This option lists all the configured zones. Each line of output contains the zone
80 name, class (e.g. IN), view, and type (e.g. primary or secondary).
81 .UNINDENT
82 .INDENT 0.0
83 .TP
84 .B \-c
85 This option specifies that only the \(dqcore\(dq configuration should be checked. This suppresses the loading of
86 plugin modules, and causes all parameters to \fBplugin\fP statements to
87 be ignored.
88 .UNINDENT
89 .INDENT 0.0
90 .TP
91 .B \-i
92 This option ignores warnings on deprecated options.
93 .UNINDENT
94 .INDENT 0.0
95 .TP
96 .B \-p
97 This option prints out the \fBnamed.conf\fP \%<#\:std-iscman-named\:.conf> and included files in canonical form if
98 no errors were detected. See also the \fB\-x\fP option.
99 .UNINDENT
100 .INDENT 0.0
101 .TP
102 .B \-t directory
103 This option instructs \fBnamed\fP \%<#\:std-iscman-named> to chroot to \fBdirectory\fP, so that \fBinclude\fP directives in the
104 configuration file are processed as if run by a similarly chrooted
105 \fBnamed\fP \%<#\:std-iscman-named>\&.
106 .UNINDENT
107 .INDENT 0.0
108 .TP
109 .B \-v
110 This option prints the version of the \fBnamed\-checkconf\fP program and exits.
111 .UNINDENT
112 .INDENT 0.0
113 .TP
114 .B \-x
115 When printing the configuration files in canonical form, this option obscures
116 shared secrets by replacing them with strings of question marks
117 (\fB?\fP). This allows the contents of \fBnamed.conf\fP \%<#\:std-iscman-named\:.conf> and related files
118 to be shared \- for example, when submitting bug reports \-
119 without compromising private data. This option cannot be used without
120 \fB\-p\fP\&.
121 .UNINDENT
122 .INDENT 0.0
123 .TP
124 .B \-z
125 This option performs a test load of all zones of type \fBprimary\fP found in \fBnamed.conf\fP \%<#\:std-iscman-named\:.conf>\&.
126 .UNINDENT
127 .INDENT 0.0
128 .TP
129 .B filename
130 This indicates the name of the configuration file to be checked. If not specified,
131 it defaults to \fB@sysconfdir@/named.conf\fP\&.
132 .UNINDENT
133 .SH RETURN VALUES
134 .sp
135 \fBnamed\-checkconf\fP returns an exit status of 1 if errors were detected
136 and 0 otherwise.
137 .SH SEE ALSO
138 .sp
139 \fBnamed(8)\fP \%<#\:std-iscman-named>, \fBnamed\-checkzone(8)\fP \%<#\:std-iscman-named-checkzone>, BIND 9 Administrator Reference Manual.
140 .SH Author
141 Internet Systems Consortium
142 .SH Copyright
143 2026, Internet Systems Consortium
144 .\" End of generated man page.