| 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-CONFGEN" "8" "@RELEASE_DATE@" "@PACKAGE_VERSION@" "BIND 9" |
| 32 |
.SH NAME |
| 33 |
rndc-confgen \- rndc key generation tool |
| 34 |
.SH SYNOPSIS |
| 35 |
.sp |
| 36 |
\fBrndc\-confgen\fP [\fB\-a\fP] [\fB\-A\fP algorithm] [\fB\-b\fP keysize] [\fB\-c\fP keyfile] [\fB\-h\fP] [\fB\-k\fP keyname] [\fB\-p\fP port] [\fB\-s\fP address] [\fB\-t\fP chrootdir] [\fB\-u\fP user] |
| 37 |
.SH DESCRIPTION |
| 38 |
.sp |
| 39 |
\fBrndc\-confgen\fP generates configuration files for \fBrndc\fP \%<#\:std-iscman-rndc>\&. It can be |
| 40 |
used as a convenient alternative to writing the \fBrndc.conf\fP \%<#\:std-iscman-rndc\:.conf> file and |
| 41 |
the corresponding \fBcontrols\fP and \fBkey\fP statements in \fBnamed.conf\fP \%<#\:std-iscman-named\:.conf> |
| 42 |
by hand. Alternatively, it can be run with the \fB\-a\fP option to set up a |
| 43 |
\fBrndc.key\fP file and avoid the need for a \fBrndc.conf\fP \%<#\:std-iscman-rndc\:.conf> file and a |
| 44 |
\fBcontrols\fP statement altogether. |
| 45 |
.SH OPTIONS |
| 46 |
.INDENT 0.0 |
| 47 |
.TP |
| 48 |
.B \-a |
| 49 |
This option sets automatic \fBrndc\fP \%<#\:std-iscman-rndc> configuration, which creates a file |
| 50 |
\fB@sysconfdir@/rndc.key\fP that is read by both \fBrndc\fP \%<#\:std-iscman-rndc> and \fBnamed\fP \%<#\:std-iscman-named> on startup. |
| 51 |
The \fBrndc.key\fP file defines a default command channel and |
| 52 |
authentication key allowing \fBrndc\fP \%<#\:std-iscman-rndc> to communicate with \fBnamed\fP \%<#\:std-iscman-named> on |
| 53 |
the local host with no further configuration. |
| 54 |
.sp |
| 55 |
If a more elaborate configuration than that generated by |
| 56 |
\fBrndc\-confgen \-a\fP is required, for example if rndc is to be used |
| 57 |
remotely, run \fBrndc\-confgen\fP without the \fB\-a\fP option |
| 58 |
and set up \fBrndc.conf\fP \%<#\:std-iscman-rndc\:.conf> and \fBnamed.conf\fP \%<#\:std-iscman-named\:.conf> as directed. |
| 59 |
.UNINDENT |
| 60 |
.INDENT 0.0 |
| 61 |
.TP |
| 62 |
.B \-A algorithm |
| 63 |
This option specifies the algorithm to use for the TSIG key. Available choices |
| 64 |
are: hmac\-md5, hmac\-sha1, hmac\-sha224, hmac\-sha256, hmac\-sha384, and |
| 65 |
hmac\-sha512. The default is hmac\-sha256. |
| 66 |
.UNINDENT |
| 67 |
.INDENT 0.0 |
| 68 |
.TP |
| 69 |
.B \-b keysize |
| 70 |
This option specifies the size of the authentication key in bits. The size must be between |
| 71 |
1 and 512 bits; the default is the hash size. |
| 72 |
.UNINDENT |
| 73 |
.INDENT 0.0 |
| 74 |
.TP |
| 75 |
.B \-c keyfile |
| 76 |
This option is used with the \fB\-a\fP option to specify an alternate location for |
| 77 |
\fBrndc.key\fP\&. |
| 78 |
.UNINDENT |
| 79 |
.INDENT 0.0 |
| 80 |
.TP |
| 81 |
.B \-h |
| 82 |
This option prints a short summary of the options and arguments to |
| 83 |
\fBrndc\-confgen\fP\&. |
| 84 |
.UNINDENT |
| 85 |
.INDENT 0.0 |
| 86 |
.TP |
| 87 |
.B \-k keyname |
| 88 |
This option specifies the key name of the \fBrndc\fP \%<#\:std-iscman-rndc> authentication key. This must be a |
| 89 |
valid domain name. The default is \fBrndc\-key\fP\&. |
| 90 |
.UNINDENT |
| 91 |
.INDENT 0.0 |
| 92 |
.TP |
| 93 |
.B \-p port |
| 94 |
This option specifies the command channel port where \fBnamed\fP \%<#\:std-iscman-named> listens for |
| 95 |
connections from \fBrndc\fP \%<#\:std-iscman-rndc>\&. The default is 953. |
| 96 |
.UNINDENT |
| 97 |
.INDENT 0.0 |
| 98 |
.TP |
| 99 |
.B \-q |
| 100 |
This option prevets printing the written path in automatic configuration mode. |
| 101 |
.UNINDENT |
| 102 |
.INDENT 0.0 |
| 103 |
.TP |
| 104 |
.B \-s address |
| 105 |
This option specifies the IP address where \fBnamed\fP \%<#\:std-iscman-named> listens for command\-channel |
| 106 |
connections from \fBrndc\fP \%<#\:std-iscman-rndc>\&. The default is the loopback address |
| 107 |
127.0.0.1. |
| 108 |
.UNINDENT |
| 109 |
.INDENT 0.0 |
| 110 |
.TP |
| 111 |
.B \-t chrootdir |
| 112 |
This option is used with the \fB\-a\fP option to specify a directory where \fBnamed\fP \%<#\:std-iscman-named> |
| 113 |
runs chrooted. An additional copy of the \fBrndc.key\fP is |
| 114 |
written relative to this directory, so that it is found by the |
| 115 |
chrooted \fBnamed\fP \%<#\:std-iscman-named>\&. |
| 116 |
.UNINDENT |
| 117 |
.INDENT 0.0 |
| 118 |
.TP |
| 119 |
.B \-u user |
| 120 |
This option is used with the \fB\-a\fP option to set the owner of the generated \fBrndc.key\fP file. |
| 121 |
If \fB\-t\fP is also specified, only the file in the chroot |
| 122 |
area has its owner changed. |
| 123 |
.UNINDENT |
| 124 |
.SH EXAMPLES |
| 125 |
.sp |
| 126 |
To allow \fBrndc\fP \%<#\:std-iscman-rndc> to be used with no manual configuration, run: |
| 127 |
.sp |
| 128 |
\fBrndc\-confgen \-a\fP |
| 129 |
.sp |
| 130 |
To print a sample \fBrndc.conf\fP \%<#\:std-iscman-rndc\:.conf> file and the corresponding \fBcontrols\fP and |
| 131 |
\fBkey\fP statements to be manually inserted into \fBnamed.conf\fP \%<#\:std-iscman-named\:.conf>, run: |
| 132 |
.sp |
| 133 |
\fBrndc\-confgen\fP |
| 134 |
.SH SEE ALSO |
| 135 |
.sp |
| 136 |
\fBrndc(8)\fP \%<#\:std-iscman-rndc>, \fBrndc.conf(5)\fP \%<#\:std-iscman-rndc\:.conf>, \fBnamed(8)\fP \%<#\:std-iscman-named>, BIND 9 Administrator Reference Manual. |
| 137 |
.SH Author |
| 138 |
Internet Systems Consortium |
| 139 |
.SH Copyright |
| 140 |
2026, Internet Systems Consortium |
| 141 |
.\" End of generated man page. |