Debian Codegraph @

doc/man/rndc.8in

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 "RNDC" "8" "@RELEASE_DATE@" "@PACKAGE_VERSION@" "BIND 9"
32 .SH NAME
33 rndc \- name server control utility
34 .SH SYNOPSIS
35 .sp
36 \fBrndc\fP [\fB\-b\fP source\-address] [\fB\-c\fP config\-file] [\fB\-k\fP key\-file] [\fB\-s\fP server] [\fB\-p\fP port] [\fB\-q\fP] [\fB\-r\fP] [\fB\-V\fP] [\fB\-y\fP server_key] [[\fB\-4\fP] | [\fB\-6\fP]] {command}
37 .SH DESCRIPTION
38 .sp
39 \fBrndc\fP controls the operation of a name server. If \fBrndc\fP is
40 invoked with no command line options or arguments, it prints a short
41 summary of the supported commands and the available options and their
42 arguments.
43 .sp
44 \fBrndc\fP communicates with the name server over a TCP connection,
45 sending commands authenticated with digital signatures. In the current
46 versions of \fBrndc\fP and \fBnamed\fP \%<#\:std-iscman-named>, the only supported authentication
47 algorithms are HMAC\-MD5 (for compatibility), HMAC\-SHA1, HMAC\-SHA224,
48 HMAC\-SHA256 (default), HMAC\-SHA384, and HMAC\-SHA512. They use a shared
49 secret on each end of the connection, which provides TSIG\-style
50 authentication for the command request and the name server\(aqs response.
51 All commands sent over the channel must be signed by a server_key known to
52 the server.
53 .sp
54 \fBrndc\fP reads a configuration file to determine how to contact the name
55 server and decide what algorithm and key it should use.
56 .SH OPTIONS
57 .INDENT 0.0
58 .TP
59 .B \-4
60 This option indicates use of IPv4 only.
61 .UNINDENT
62 .INDENT 0.0
63 .TP
64 .B \-6
65 This option indicates use of IPv6 only.
66 .UNINDENT
67 .INDENT 0.0
68 .TP
69 .B \-b source\-address
70 This option indicates \fBsource\-address\fP as the source address for the connection to the
71 server. Multiple instances are permitted, to allow setting of both the
72 IPv4 and IPv6 source addresses.
73 .UNINDENT
74 .INDENT 0.0
75 .TP
76 .B \-c config\-file
77 This option indicates \fBconfig\-file\fP as the configuration file instead of the default,
78 \fB@sysconfdir@/rndc.conf\fP\&.
79 .UNINDENT
80 .INDENT 0.0
81 .TP
82 .B \-k key\-file
83 This option indicates \fBkey\-file\fP as the key file instead of the default,
84 \fB@sysconfdir@/rndc.key\fP\&. The key in \fB@sysconfdir@/rndc.key\fP is used to
85 authenticate commands sent to the server if the config\-file does not
86 exist.
87 .UNINDENT
88 .INDENT 0.0
89 .TP
90 .B \-s server
91 \fBserver\fP is the name or address of the server which matches a server
92 statement in the configuration file for \fBrndc\fP\&. If no server is
93 supplied on the command line, the host named by the default\-server
94 clause in the options statement of the \fBrndc\fP configuration file
95 is used.
96 .UNINDENT
97 .INDENT 0.0
98 .TP
99 .B \-p port
100 This option instructs BIND 9 to send commands to TCP port \fBport\fP instead of its default control
101 channel port, 953.
102 .UNINDENT
103 .INDENT 0.0
104 .TP
105 .B \-q
106 This option sets quiet mode, where message text returned by the server is not printed
107 unless there is an error.
108 .UNINDENT
109 .INDENT 0.0
110 .TP
111 .B \-r
112 This option instructs \fBrndc\fP to print the result code returned by \fBnamed\fP \%<#\:std-iscman-named>
113 after executing the requested command (e.g., ISC_R_SUCCESS,
114 ISC_R_FAILURE, etc.).
115 .UNINDENT
116 .INDENT 0.0
117 .TP
118 .B \-t timeout
119 This option sets the idle timeout period for \fBrndc\fP to
120 \fBtimeout\fP seconds. The default is 60 seconds, and the maximum settable
121 value is 86400 seconds (1 day). If set to 0, there is no timeout.
122 .UNINDENT
123 .INDENT 0.0
124 .TP
125 .B \-V
126 This option enables verbose logging.
127 .UNINDENT
128 .INDENT 0.0
129 .TP
130 .B \-y server_key
131 This option indicates use of the key \fBserver_key\fP from the configuration file. For control message validation to succeed, \fBserver_key\fP must be known
132 by \fBnamed\fP \%<#\:std-iscman-named> with the same algorithm and secret string. If no \fBserver_key\fP is specified,
133 \fBrndc\fP first looks for a key clause in the server statement of
134 the server being used, or if no server statement is present for that
135 host, then in the default\-key clause of the options statement. Note that
136 the configuration file contains shared secrets which are used to send
137 authenticated control commands to name servers, and should therefore
138 not have general read or write access.
139 .UNINDENT
140 .SH COMMANDS
141 .sp
142 A list of commands supported by \fBrndc\fP can be seen by running \fBrndc\fP
143 without arguments.
144 .sp
145 Currently supported commands are:
146 .INDENT 0.0
147 .TP
148 .B addzone zone [class [view]] configuration
149 This command adds a zone while the server is running. This command
150 requires the \fBallow\-new\-zones\fP option to be set to \fByes\fP\&. The
151 configuration string specified on the command line is the zone
152 configuration text that would ordinarily be placed in \fBnamed.conf\fP \%<#\:std-iscman-named\:.conf>\&.
153 .sp
154 The configuration is saved in a file called \fBviewname.nzf\fP (or, if
155 \fBnamed\fP \%<#\:std-iscman-named> is compiled with liblmdb, an LMDB database file called
156 \fBviewname.nzd\fP). \fBviewname\fP is the name of the view, unless the view
157 name contains characters that are incompatible with use as a file
158 name, in which case a cryptographic hash of the view name is used
159 instead. When \fBnamed\fP \%<#\:std-iscman-named> is restarted, the file is loaded into
160 the view configuration so that zones that were added can persist
161 after a restart.
162 .sp
163 This sample \fBaddzone\fP command adds the zone \fBexample.com\fP to
164 the default view:
165 .sp
166 \fBrndc addzone example.com \(aq{ type primary; file \(dqexample.com.db\(dq; };\(aq\fP
167 .sp
168 (Note the brackets around and semi\-colon after the zone configuration
169 text.)
170 .sp
171 See also \fBrndc delzone\fP and \fBrndc modzone\fP\&.
172 .UNINDENT
173 .INDENT 0.0
174 .TP
175 .B delzone [\-clean] zone [class [view]]
176 This command deletes a zone while the server is running.
177 .sp
178 If the \fB\-clean\fP argument is specified, the zone\(aqs master file (and
179 journal file, if any) are deleted along with the zone. Without
180 the \fB\-clean\fP option, zone files must be deleted manually. (If the
181 zone is of type \fBsecondary\fP or \fBstub\fP, the files needing to be removed
182 are reported in the output of the \fBrndc delzone\fP command.)
183 .sp
184 If the zone was originally added via \fBrndc addzone\fP, then it is
185 removed permanently. However, if it was originally configured in
186 \fBnamed.conf\fP \%<#\:std-iscman-named\:.conf>, then that original configuration remains in place;
187 when the server is restarted or reconfigured, the zone is
188 recreated. To remove it permanently, it must also be removed from
189 \fBnamed.conf\fP \%<#\:std-iscman-named\:.conf>\&.
190 .sp
191 See also \fBrndc addzone\fP and \fBrndc modzone\fP\&.
192 .UNINDENT
193 .INDENT 0.0
194 .TP
195 .B dnssec
196 The following commands allow you to interact with the \(dqdnssec\-policy\(dq of a
197 given zone.
198 .INDENT 7.0
199 .TP
200 .B \-checkds [\-key id [\-alg algorithm]] [\-when time] (published | withdrawn) zone [class [view]]
201 This command informs \fBnamed\fP \%<#\:std-iscman-named> that the DS for a specified zone\(aqs
202 key\-signing key (KSK) has been confirmed to be published in, or withdrawn
203 from, the parent zone. This is required in order to complete a KSK
204 rollover. The \fB\-key id\fP and \fB\-alg algorithm\fP arguments can be used to
205 specify a particular KSK, if necessary; if there is only one key acting
206 as a KSK for the zone, these arguments can be omitted. The time of
207 publication or withdrawal for the DS is set to the current time by
208 default, but can be overridden to a specific time with the argument
209 \fB\-when time\fP, where \fBtime\fP is expressed in YYYYMMDDHHMMSS notation.
210 .UNINDENT
211 .INDENT 7.0
212 .TP
213 .B \-rollover \-key id [\-alg algorithm] [\-when time] zone [class [view]]
214 This command allows you to schedule key rollover for a specific key
215 (overriding the original key lifetime). The \fB\-key id\fP and
216 \fB\-alg algorithm\fP arguments specify which key to roll. The time to start
217 the rollover can be set with \fB\-when time\fP, where \fBtime\fP is expressed in
218 YYYYMMDDHHMMSS. If not set the rollover will start immediately.
219 .UNINDENT
220 .INDENT 7.0
221 .TP
222 .B \-status [\-v] zone [class [view]]
223 This command shows the DNSSEC signing state for the specified zone.
224 Adding \fB\-v\fP also lists no longer used keys and shows the key states of
225 the keys.
226 .UNINDENT
227 .INDENT 7.0
228 .TP
229 .B \-step zone [class [view]]
230 This command sends a signal to an instance of \fBnamed\fP \%<#\:std-iscman-named> for a
231 zone configured with \fBdnssec\-policy\fP in manual mode, telling it to
232 continue with the operations that had previously been blocked but logged.
233 This gives the human operator a chance to review the log messages,
234 understand what will happen next and then, using \fBrndc dnssec \-step\fP, to
235 inform \fBnamed\fP \%<#\:std-iscman-named> to proceed to the next stage.
236 .UNINDENT
237 .UNINDENT
238 .INDENT 0.0
239 .TP
240 .B dnstap (\-reopen | \-roll [number])
241 This command closes and re\-opens DNSTAP output files.
242 .sp
243 \fBrndc dnstap \-reopen\fP allows
244 the output file to be renamed externally, so that \fBnamed\fP \%<#\:std-iscman-named> can
245 truncate and re\-open it.
246 .sp
247 \fBrndc dnstap \-roll\fP causes the output file
248 to be rolled automatically, similar to log files. The most recent
249 output file has \(dq.0\(dq appended to its name; the previous most recent
250 output file is moved to \(dq.1\(dq, and so on. If \fBnumber\fP is specified, then
251 the number of backup log files is limited to that number.
252 .UNINDENT
253 .INDENT 0.0
254 .TP
255 .B dumpdb [\-all | \-cache | \-zones | \-adb | \-bad | \-expired | \-fail] [view ...]
256 This command dumps the server\(aqs caches (default) and/or zones to the dump file for
257 the specified views. If no view is specified, all views are dumped.
258 (See the \fBdump\-file\fP option in the BIND 9 Administrator Reference
259 Manual.)
260 .UNINDENT
261 .INDENT 0.0
262 .TP
263 .B fetchlimit [view]
264 This command dumps a list of servers that are currently being
265 rate\-limited as a result of \fBfetches\-per\-server\fP settings, and
266 a list of domain names that are currently being rate\-limited as
267 a result of \fBfetches\-per\-zone\fP settings.
268 .UNINDENT
269 .INDENT 0.0
270 .TP
271 .B flush
272 This command flushes the server\(aqs cache.
273 .UNINDENT
274 .INDENT 0.0
275 .TP
276 .B flushname name [view]
277 This command flushes the given name from the view\(aqs DNS cache and, if applicable,
278 from the view\(aqs nameserver address database, bad server cache, and
279 SERVFAIL cache.
280 .UNINDENT
281 .INDENT 0.0
282 .TP
283 .B flushtree name [view]
284 This command flushes the given name, and all of its subdomains, from the view\(aqs
285 DNS cache, address database, bad server cache, and SERVFAIL cache.
286 .UNINDENT
287 .INDENT 0.0
288 .TP
289 .B freeze [zone [class [view]]]
290 This command suspends updates to a dynamic zone. If no zone is specified, then all
291 zones are suspended. This allows manual edits to be made to a zone
292 normally updated by dynamic update, and causes changes in the
293 journal file to be synced into the master file. All dynamic update
294 attempts are refused while the zone is frozen.
295 .sp
296 See also \fBrndc thaw\fP\&.
297 .UNINDENT
298 .INDENT 0.0
299 .TP
300 .B halt [\-p]
301 This command stops the server immediately. Recent changes made through dynamic
302 update or IXFR are not saved to the master files, but are rolled
303 forward from the journal files when the server is restarted. If
304 \fB\-p\fP is specified, \fBnamed\fP \%<#\:std-iscman-named>\(aqs process ID is returned. This allows
305 an external process to determine when \fBnamed\fP \%<#\:std-iscman-named> has completed
306 halting.
307 .sp
308 See also \fBrndc stop\fP\&.
309 .UNINDENT
310 .INDENT 0.0
311 .TP
312 .B skr \-import file zone [class [view]]
313 This command allows you to import a SKR file for the specified zone, to
314 support offline KSK signing.
315 .UNINDENT
316 .INDENT 0.0
317 .TP
318 .B loadkeys [zone [class [view]]]
319 This command fetches all DNSSEC keys for the given zone from the key directory. If
320 they are within their publication period, they are merged into the
321 zone\(aqs DNSKEY RRset. Unlike \fBrndc sign\fP, however, the zone is not
322 immediately re\-signed by the new keys, but is allowed to
323 incrementally re\-sign over time.
324 .sp
325 This command requires that the zone be configured with a \fBdnssec\-policy\fP\&.
326 .UNINDENT
327 .INDENT 0.0
328 .TP
329 .B managed\-keys (status | refresh | sync | destroy) [class [view]]
330 This command inspects and controls the \(dqmanaged\-keys\(dq database which handles
331 \fBRFC 5011\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc5011\:.html> DNSSEC trust anchor maintenance. If a view is specified, these
332 commands are applied to that view; otherwise, they are applied to all
333 views.
334 .INDENT 7.0
335 .IP \(bu 2
336 When run with the \fBstatus\fP keyword, this prints the current status of
337 the managed\-keys database.
338 .IP \(bu 2
339 When run with the \fBrefresh\fP keyword, this forces an immediate refresh
340 query to be sent for all the managed keys, updating the
341 managed\-keys database if any new keys are found, without waiting
342 the normal refresh interval.
343 .IP \(bu 2
344 When run with the \fBsync\fP keyword, this forces an immediate dump of
345 the managed\-keys database to disk (in the file
346 \fBmanaged\-keys.bind\fP or (\fBviewname.mkeys\fP). This synchronizes
347 the database with its journal file, so that the database\(aqs current
348 contents can be inspected visually.
349 .IP \(bu 2
350 When run with the \fBdestroy\fP keyword, the managed\-keys database
351 is shut down and deleted, and all key maintenance is terminated.
352 This command should be used only with extreme caution.
353 .sp
354 Existing keys that are already trusted are not deleted from
355 memory; DNSSEC validation can continue after this command is used.
356 However, key maintenance operations cease until \fBnamed\fP \%<#\:std-iscman-named> is
357 restarted or reconfigured, and all existing key maintenance states
358 are deleted.
359 .sp
360 Running \fBrndc reconfig\fP or restarting \fBnamed\fP \%<#\:std-iscman-named> immediately
361 after this command causes key maintenance to be reinitialized
362 from scratch, just as if the server were being started for the
363 first time. This is primarily intended for testing, but it may
364 also be used, for example, to jumpstart the acquisition of new
365 keys in the event of a trust anchor rollover, or as a brute\-force
366 repair for key maintenance problems.
367 .UNINDENT
368 .UNINDENT
369 .INDENT 0.0
370 .TP
371 .B memprof [(on | off | dump)]
372 This command controls memory profiling. To have any effect, \fBnamed\fP \%<#\:std-iscman-named> must be
373 built with jemalloc, the library have profiling support enabled and run with the
374 \fBprof:true\fP allocator configuration. (either via \fBMALLOC_CONF\fP or \fB/etc/malloc.conf\fP)
375 .sp
376 The \fBprof_active:false\fP option is recommended to ensure the profiling overhead does
377 not affect \fBnamed\fP \%<#\:std-iscman-named> when not needed.
378 .sp
379 The \fBon\fP and \fBoff\fP options will start and stop the jemalloc memory profiling respectively.
380 When run with the \fIdump\fP option, \fBnamed\fP \%<#\:std-iscman-named> will dump the profile to the working
381 directory. The name will be chosen automatically by jemalloc.
382 .UNINDENT
383 .INDENT 0.0
384 .TP
385 .B modzone zone [class [view]] configuration
386 This command modifies the configuration of a zone while the server is
387 running. This command requires the \fBallow\-new\-zones\fP option to be set
388 to \fByes\fP\&. As with \fBaddzone\fP, the configuration string specified on
389 the command line is the zone configuration text that would ordinarily be
390 placed in \fBnamed.conf\fP \%<#\:std-iscman-named\:.conf>\&.
391 .sp
392 If the zone was originally added via \fBrndc addzone\fP, the
393 configuration changes are recorded permanently and are still
394 in effect after the server is restarted or reconfigured. However, if
395 it was originally configured in \fBnamed.conf\fP \%<#\:std-iscman-named\:.conf>, then that original
396 configuration remains in place; when the server is restarted or
397 reconfigured, the zone reverts to its original configuration. To
398 make the changes permanent, it must also be modified in
399 \fBnamed.conf\fP \%<#\:std-iscman-named\:.conf>\&.
400 .sp
401 See also \fBrndc addzone\fP and \fBrndc delzone\fP\&.
402 .UNINDENT
403 .INDENT 0.0
404 .TP
405 .B notify zone [class [view]]
406 This command resends NOTIFY messages for the zone.
407 .UNINDENT
408 .INDENT 0.0
409 .TP
410 .B notrace
411 This command sets the server\(aqs debugging level to 0.
412 .sp
413 See also \fBrndc trace\fP\&.
414 .UNINDENT
415 .INDENT 0.0
416 .TP
417 .B nta [(\-class class | \-dump | \-force | \-remove | \-lifetime duration)] domain [view]
418 This command sets a DNSSEC negative trust anchor (NTA) for \fBdomain\fP, with a
419 lifetime of \fBduration\fP\&. The default lifetime is configured in
420 \fBnamed.conf\fP \%<#\:std-iscman-named\:.conf> via the \fBnta\-lifetime\fP option, and defaults to one
421 hour. The lifetime cannot exceed one week.
422 .sp
423 A negative trust anchor selectively disables DNSSEC validation for
424 zones that are known to be failing because of misconfiguration rather
425 than an attack. When data to be validated is at or below an active
426 NTA (and above any other configured trust anchors), \fBnamed\fP \%<#\:std-iscman-named>
427 aborts the DNSSEC validation process and treats the data as insecure
428 rather than bogus. This continues until the NTA\(aqs lifetime has
429 elapsed.
430 .sp
431 NTAs persist across restarts of the \fBnamed\fP \%<#\:std-iscman-named> server. The NTAs for a
432 view are saved in a file called \fBname.nta\fP, where \fBname\fP is the name
433 of the view; if it contains characters that are incompatible with
434 use as a file name, a cryptographic hash is generated from the name of
435 the view.
436 .sp
437 An existing NTA can be removed by using the \fB\-remove\fP option.
438 .sp
439 An NTA\(aqs lifetime can be specified with the \fB\-lifetime\fP option.
440 TTL\-style suffixes can be used to specify the lifetime in seconds,
441 minutes, or hours. If the specified NTA already exists, its lifetime
442 is updated to the new value. Setting \fBlifetime\fP to zero is
443 equivalent to \fB\-remove\fP\&.
444 .sp
445 If \fB\-dump\fP is used, any other arguments are ignored and a list
446 of existing NTAs is printed. Note that this may include NTAs that are
447 expired but have not yet been cleaned up.
448 .sp
449 Normally, \fBnamed\fP \%<#\:std-iscman-named> periodically tests to see whether data below
450 an NTA can now be validated (see the \fBnta\-recheck\fP option in the
451 Administrator Reference Manual for details). If data can be
452 validated, then the NTA is regarded as no longer necessary and is
453 allowed to expire early. The \fB\-force\fP parameter overrides this behavior
454 and forces an NTA to persist for its entire lifetime, regardless of
455 whether data could be validated if the NTA were not present.
456 .sp
457 The view class can be specified with \fB\-class\fP\&. The default is class
458 \fBIN\fP, which is the only class for which DNSSEC is currently
459 supported.
460 .sp
461 All of these options can be shortened, i.e., to \fB\-l\fP, \fB\-r\fP,
462 \fB\-d\fP, \fB\-f\fP, and \fB\-c\fP\&.
463 .sp
464 Unrecognized options are treated as errors. To refer to a domain or
465 view name that begins with a hyphen, use a double\-hyphen (\-\-) on the
466 command line to indicate the end of options.
467 .UNINDENT
468 .INDENT 0.0
469 .TP
470 .B querylog [(on | off)]
471 This command enables or disables query logging. For backward compatibility, this
472 command can also be used without an argument to toggle query logging
473 on and off.
474 .sp
475 Query logging can also be enabled by explicitly directing the
476 \fBqueries\fP \fBcategory\fP to a \fBchannel\fP in the \fBlogging\fP section
477 of \fBnamed.conf\fP \%<#\:std-iscman-named\:.conf>, or by specifying \fBquerylog yes;\fP in the
478 \fBoptions\fP section of \fBnamed.conf\fP \%<#\:std-iscman-named\:.conf>\&.
479 .UNINDENT
480 .INDENT 0.0
481 .TP
482 .B reconfig
483 This command reloads the configuration file and loads new zones, but does not reload
484 existing zone files even if they have changed. This is faster than a
485 full \fBrndc reload\fP when there is a large number of zones, because it
486 avoids the need to examine the modification times of the zone files.
487 .UNINDENT
488 .INDENT 0.0
489 .TP
490 .B recursing
491 This command dumps the list of queries \fBnamed\fP \%<#\:std-iscman-named> is currently
492 recursing on, and the list of domains to which iterative queries
493 are currently being sent.
494 .sp
495 The first list includes all unique clients that are waiting for
496 recursion to complete, including the query that is awaiting a
497 response and the timestamp (seconds since the Unix epoch) of
498 when named started processing this client query.
499 .sp
500 The second list comprises of domains for which there are active
501 (or recently active) fetches in progress. It reports the number
502 of active fetches for each domain and the number of queries that
503 have been passed (allowed) or dropped (spilled) as a result of
504 the \fBfetches\-per\-zone\fP limit. (Note: these counters are not
505 cumulative over time; whenever the number of active fetches for
506 a domain drops to zero, the counter for that domain is deleted,
507 and the next time a fetch is sent to that domain, it is recreated
508 with the counters set to zero).
509 .UNINDENT
510 .INDENT 0.0
511 .TP
512 .B refresh zone [class [view]]
513 This command schedules zone maintenance for the given zone.
514 .UNINDENT
515 .INDENT 0.0
516 .TP
517 .B reload
518 This command reloads the configuration file and zones.
519 .INDENT 7.0
520 .TP
521 .B zone [class [view]]
522 .UNINDENT
523 .sp
524 If a zone is specified, this command reloads only the given zone.
525 If no zone is specified, the reloading happens asynchronously.
526 .UNINDENT
527 .INDENT 0.0
528 .TP
529 .B reset\-stats <counter\-name ...>
530 This command resets the requested statistics counters.
531 .sp
532 At least one counter name must be provided. Currently the following counters
533 are supported: \fBrecursive\-high\-water\fP, \fBtcp\-high\-water\fP\&.
534 .UNINDENT
535 .INDENT 0.0
536 .TP
537 .B responselog [on | off]
538 This command enables or disables response logging. For backward compatibility,
539 this command can also be used without an argument to toggle response logging
540 on and off.
541 .sp
542 Unlike query logging, response logging cannot be enabled by explicitly directing
543 the \fBresponses\fP \fBcategory\fP to a \fBchannel\fP in the \fBlogging\fP section
544 of \fBnamed.conf\fP \%<#\:std-iscman-named\:.conf>, but it can still be enabled by specifying
545 \fBresponselog yes;\fP in the \fBoptions\fP section of \fBnamed.conf\fP \%<#\:std-iscman-named\:.conf>\&.
546 .UNINDENT
547 .INDENT 0.0
548 .TP
549 .B retransfer [\-force] zone [class [view]]
550 This command retransfers the given secondary zone from the primary server.
551 .sp
552 If the zone is configured to use \fBinline\-signing\fP, the signed
553 version of the zone is discarded; after the retransfer of the
554 unsigned version is complete, the signed version is regenerated
555 with new signatures. With the optional \fB\-force\fP argument provided
556 if there is an ongoing zone transfer it will be aborted before a new zone
557 transfer is scheduled.
558 .UNINDENT
559 .INDENT 0.0
560 .TP
561 .B scan
562 This command scans the list of available network interfaces for changes, without
563 performing a full \fBrndc reconfig\fP or waiting for the
564 \fBinterface\-interval\fP timer.
565 .UNINDENT
566 .INDENT 0.0
567 .TP
568 .B secroots [\-] [view ...]
569 This command dumps the security roots (i.e., trust anchors configured via
570 \fBtrust\-anchors\fP, or the \fBmanaged\-keys\fP or \fBtrusted\-keys\fP statements
571 [both deprecated], or \fBdnssec\-validation auto\fP) and negative trust anchors
572 for the specified views. If no view is specified, all views are
573 dumped. Security roots indicate whether they are configured as trusted
574 keys, managed keys, or initializing managed keys (managed keys that have not
575 yet been updated by a successful key refresh query).
576 .sp
577 If the first argument is \fB\-\fP, then the output is returned via the
578 \fBrndc\fP response channel and printed to the standard output.
579 Otherwise, it is written to the secroots dump file, which defaults to
580 \fBnamed.secroots\fP, but can be overridden via the \fBsecroots\-file\fP
581 option in \fBnamed.conf\fP \%<#\:std-iscman-named\:.conf>\&.
582 .sp
583 See also \fBrndc managed\-keys\fP\&.
584 .UNINDENT
585 .INDENT 0.0
586 .TP
587 .B serve\-stale (on | off | reset | status) [class [view]]
588 This command enables, disables, resets, or reports the current status of
589 the serving of stale answers as configured in \fBnamed.conf\fP \%<#\:std-iscman-named\:.conf>\&.
590 .sp
591 If serving of stale answers is disabled by \fBrndc\-serve\-stale off\fP, then it
592 remains disabled even if \fBnamed\fP \%<#\:std-iscman-named> is reloaded or reconfigured. \fBrndc
593 serve\-stale reset\fP restores the setting as configured in \fBnamed.conf\fP \%<#\:std-iscman-named\:.conf>\&.
594 .sp
595 \fBrndc serve\-stale status\fP reports whether caching and serving of stale
596 answers is currently enabled or disabled. It also reports the values of
597 \fBstale\-answer\-ttl\fP and \fBmax\-stale\-ttl\fP\&.
598 .UNINDENT
599 .INDENT 0.0
600 .TP
601 .B showzone zone [class [view]]
602 If the server is configured with \fBallow\-new\-zones\fP set to \fByes\fP,
603 then this command prints the configuration of a running zone.
604 .sp
605 See also \fBrndc addzone\fP, \fBrndc modzone\fP\&.
606 and \fBrndc delzone\fP\&.
607 .UNINDENT
608 .INDENT 0.0
609 .TP
610 .B sign zone [class [view]]
611 This command fetches all DNSSEC keys for the given zone from the key directory (see
612 the \fBkey\-directory\fP option in the BIND 9 Administrator Reference
613 Manual). If they are within their publication period, they are merged into
614 the zone\(aqs DNSKEY RRset. If the DNSKEY RRset is changed, then the
615 zone is automatically re\-signed with the new key set. This will replace signatures
616 of inactive keys with signatures from active keys, and update signatures that
617 expire within the refresh interval.
618 .sp
619 This command requires that the zone be configured with a \fBdnssec\-policy\fP\&.
620 .sp
621 See also \fBrndc loadkeys\fP\&.
622 .UNINDENT
623 .INDENT 0.0
624 .TP
625 .B signing [(\-list | \-clear keyid/algorithm | \-clear all | \-nsec3param (parameters | none) | \-serial value) zone [class [view]]
626 This command lists, edits, or removes the DNSSEC signing\-state records for the
627 specified zone. The status of ongoing DNSSEC operations, such as
628 signing or generating NSEC3 chains, is stored in the zone in the form
629 of DNS resource records of type \fBsig\-signing\-type\fP\&.
630 \fBrndc signing \-list\fP converts these records into a human\-readable
631 form, indicating which keys are currently signing or have finished
632 signing the zone, and which NSEC3 chains are being created or
633 removed.
634 .sp
635 \fBrndc signing \-clear\fP can remove a single key (specified in the
636 same format that \fBrndc signing \-list\fP uses to display it), or all
637 keys. In either case, only completed keys are removed; any record
638 indicating that a key has not yet finished signing the zone is
639 retained.
640 .sp
641 \fBrndc signing \-nsec3param\fP sets the NSEC3 parameters for a zone.
642 This is the only supported mechanism for using NSEC3 with
643 \fBinline\-signing\fP zones. Parameters are specified in the same format
644 as an NSEC3PARAM resource record: \fBhash algorithm\fP, \fBflags\fP, \fBiterations\fP,
645 and \fBsalt\fP, in that order.
646 .sp
647 Currently, the only defined value for \fBhash algorithm\fP is \fB1\fP,
648 representing SHA\-1. The \fBflags\fP may be set to \fB0\fP or \fB1\fP,
649 depending on whether the opt\-out bit in the NSEC3
650 chain should be set. \fBiterations\fP defines the number of additional times to apply
651 the algorithm when generating an NSEC3 hash. The \fBsalt\fP is a string
652 of data expressed in hexadecimal, a hyphen (\fB\-\fP) if no salt is to be
653 used, or the keyword \fBauto\fP, which causes \fBnamed\fP \%<#\:std-iscman-named> to generate a
654 random 64\-bit salt.
655 .sp
656 The only recommended configuration is \fBrndc signing \-nsec3param 1 0 0 \- zone\fP,
657 i.e. no salt, no additional iterations, no opt\-out.
658 .sp
659 \fBWarning:\fP
660 .INDENT 7.0
661 .INDENT 3.5
662 Do not use extra iterations, salt, or opt\-out unless all their implications
663 are fully understood. A higher number of iterations causes interoperability
664 problems and opens servers to CPU\-exhausting DoS attacks.
665 .UNINDENT
666 .UNINDENT
667 .sp
668 \fBrndc signing \-nsec3param none\fP removes an existing NSEC3 chain and
669 replaces it with NSEC.
670 .sp
671 \fBrndc signing \-serial value\fP sets the serial number of the zone to
672 \fBvalue\fP\&. If the value would cause the serial number to go backwards, it
673 is rejected. The primary use of this parameter is to set the serial number on inline
674 signed zones.
675 .UNINDENT
676 .INDENT 0.0
677 .TP
678 .B stats
679 This command writes server statistics to the statistics file. (See the
680 \fBstatistics\-file\fP option in the BIND 9 Administrator Reference
681 Manual.)
682 .UNINDENT
683 .INDENT 0.0
684 .TP
685 .B status
686 This command displays the status of the server. Note that the number of zones includes
687 the internal \fBbind/CH\fP zone and the default \fB\&./IN\fP hint zone, if
688 there is no explicit root zone configured.
689 .UNINDENT
690 .INDENT 0.0
691 .TP
692 .B stop \-p
693 This command stops the server, making sure any recent changes made through dynamic
694 update or IXFR are first saved to the master files of the updated
695 zones. If \fB\-p\fP is specified, \fBnamed\fP \%<#\:std-iscman-named>\(aqs process ID is returned.
696 This allows an external process to determine when \fBnamed\fP \%<#\:std-iscman-named> has
697 completed stopping.
698 .sp
699 See also \fBrndc halt\fP\&.
700 .UNINDENT
701 .INDENT 0.0
702 .TP
703 .B sync \-clean [zone [class [view]]]
704 This command syncs changes in the journal file for a dynamic zone to the master
705 file. If the \(dq\-clean\(dq option is specified, the journal file is also
706 removed. If no zone is specified, then all zones are synced.
707 .UNINDENT
708 .INDENT 0.0
709 .TP
710 .B tcp\-timeouts [initial idle keepalive advertised]
711 When called without arguments, this command displays the current values of the
712 \fBtcp\-initial\-timeout\fP, \fBtcp\-idle\-timeout\fP,
713 \fBtcp\-keepalive\-timeout\fP, and \fBtcp\-advertised\-timeout\fP options.
714 When called with arguments, these values are updated. This allows an
715 administrator to make rapid adjustments when under a
716 denial\-of\-service (DoS) attack. See the descriptions of these options in the BIND 9
717 Administrator Reference Manual for details of their use.
718 .UNINDENT
719 .INDENT 0.0
720 .TP
721 .B thaw [zone [class [view]]]
722 This command enables updates to a frozen dynamic zone. If no zone is specified,
723 then all frozen zones are enabled. This causes the server to reload
724 the zone from disk, and re\-enables dynamic updates after the load has
725 completed. After a zone is thawed, dynamic updates are no longer
726 refused. If the zone has changed and the \fBixfr\-from\-differences\fP
727 option is in use, the journal file is updated to reflect
728 changes in the zone. Otherwise, if the zone has changed, any existing
729 journal file is removed. If no zone is specified, the reloading happens
730 asynchronously.
731 .sp
732 See also \fBrndc freeze\fP\&.
733 .UNINDENT
734 .INDENT 0.0
735 .TP
736 .B trace [level]
737 If no level is specified, this command increments the server\(aqs debugging
738 level by one.
739 .INDENT 7.0
740 .TP
741 .B level
742 If specified, this command sets the server\(aqs debugging level to the
743 provided value.
744 .UNINDENT
745 .sp
746 See also \fBrndc notrace\fP\&.
747 .UNINDENT
748 .INDENT 0.0
749 .TP
750 .B validation (on | off | status) [view ...]
751 This command enables, disables, or checks the current status of DNSSEC validation. By
752 default, validation is enabled.
753 .sp
754 The cache is flushed when validation is turned on or off to avoid using data
755 that might differ between states.
756 .UNINDENT
757 .INDENT 0.0
758 .TP
759 .B zonestatus zone [class [view]]
760 This command displays the current status of the given zone, including the master
761 file name and any include files from which it was loaded, when it was
762 most recently loaded, the current serial number, the number of nodes,
763 whether the zone supports dynamic updates, whether the zone is DNSSEC
764 signed, whether it uses automatic DNSSEC key management or inline
765 signing, and the scheduled refresh or expiry times for the zone.
766 .sp
767 See also \fBrndc showzone\fP\&.
768 .UNINDENT
769 .sp
770 \fBrndc\fP commands that specify zone names, such as \fBreload\fP
771 \fBretransfer\fP, or \fBzonestatus\fP, can be ambiguous when applied to zones
772 of type \fBredirect\fP\&. Redirect zones are always called \fB\&.\fP, and can be
773 confused with zones of type \fBhint\fP or with secondary copies of the root
774 zone. To specify a redirect zone, use the special zone name
775 \fB\-redirect\fP, without a trailing period. (With a trailing period, this
776 would specify a zone called \(dq\-redirect\(dq.)
777 .SH LIMITATIONS
778 .sp
779 There is currently no way to provide the shared secret for a \fBserver_key\fP
780 without using the configuration file.
781 .sp
782 Several error messages could be clearer.
783 .SH SEE ALSO
784 .sp
785 \fBrndc.conf(5)\fP \%<#\:std-iscman-rndc\:.conf>, \fBrndc\-confgen(8)\fP \%<#\:std-iscman-rndc-confgen>,
786 \fBnamed(8)\fP \%<#\:std-iscman-named>, \fBnamed.conf(5)\fP \%<#\:std-iscman-named\:.conf>, BIND 9 Administrator
787 Reference Manual.
788 .SH Author
789 Internet Systems Consortium
790 .SH Copyright
791 2026, Internet Systems Consortium
792 .\" End of generated man page.