📄 rndc-confgen.8
字号:
.\" Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC").\" Copyright (C) 2001, 2003 Internet Software Consortium..\" .\" Permission to use, copy, modify, and distribute this software for any.\" purpose with or without fee is hereby granted, provided that the above.\" copyright notice and this permission notice appear in all copies..\" .\" THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH.\" REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY.\" AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,.\" INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM.\" LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE.\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR.\" PERFORMANCE OF THIS SOFTWARE..\".\" $Id: rndc-confgen.8,v 1.9.18.11 2007/01/30 00:23:44 marka Exp $.\".hy 0.ad l.\" Title: rndc\-confgen.\" Author: .\" Generator: DocBook XSL Stylesheets v1.71.1 <http://docbook.sf.net/>.\" Date: Aug 27, 2001.\" Manual: BIND9.\" Source: BIND9.\".TH "RNDC\-CONFGEN" "8" "Aug 27, 2001" "BIND9" "BIND9".\" disable hyphenation.nh.\" disable justification (adjust text to left margin only).ad l.SH "NAME"rndc\-confgen \- rndc key generation tool.SH "SYNOPSIS".HP 13\fBrndc\-confgen\fR [\fB\-a\fR] [\fB\-b\ \fR\fB\fIkeysize\fR\fR] [\fB\-c\ \fR\fB\fIkeyfile\fR\fR] [\fB\-h\fR] [\fB\-k\ \fR\fB\fIkeyname\fR\fR] [\fB\-p\ \fR\fB\fIport\fR\fR] [\fB\-r\ \fR\fB\fIrandomfile\fR\fR] [\fB\-s\ \fR\fB\fIaddress\fR\fR] [\fB\-t\ \fR\fB\fIchrootdir\fR\fR] [\fB\-u\ \fR\fB\fIuser\fR\fR].SH "DESCRIPTION".PP\fBrndc\-confgen\fRgenerates configuration files for\fBrndc\fR. It can be used as a convenient alternative to writing the\fIrndc.conf\fRfile and the corresponding\fBcontrols\fRand\fBkey\fRstatements in\fInamed.conf\fRby hand. Alternatively, it can be run with the\fB\-a\fRoption to set up a\fIrndc.key\fRfile and avoid the need for a\fIrndc.conf\fRfile and a\fBcontrols\fRstatement altogether..SH "OPTIONS".PP\-a.RS 4Do automatic\fBrndc\fRconfiguration. This creates a file\fIrndc.key\fRin\fI/etc\fR(or whatever\fIsysconfdir\fRwas specified as whenBINDwas built) that is read by both\fBrndc\fRand\fBnamed\fRon startup. The\fIrndc.key\fRfile defines a default command channel and authentication key allowing\fBrndc\fRto communicate with\fBnamed\fRon the local host with no further configuration..spRunning\fBrndc\-confgen \-a\fRallows BIND 9 and\fBrndc\fRto be used as drop\-in replacements for BIND 8 and\fBndc\fR, with no changes to the existing BIND 8\fInamed.conf\fRfile..spIf a more elaborate configuration than that generated by\fBrndc\-confgen \-a\fRis required, for example if rndc is to be used remotely, you should run\fBrndc\-confgen\fRwithout the\fB\-a\fRoption and set up a\fIrndc.conf\fRand\fInamed.conf\fRas directed..RE.PP\-b \fIkeysize\fR.RS 4Specifies the size of the authentication key in bits. Must be between 1 and 512 bits; the default is 128..RE.PP\-c \fIkeyfile\fR.RS 4Used with the\fB\-a\fRoption to specify an alternate location for\fIrndc.key\fR..RE.PP\-h.RS 4Prints a short summary of the options and arguments to\fBrndc\-confgen\fR..RE.PP\-k \fIkeyname\fR.RS 4Specifies the key name of the rndc authentication key. This must be a valid domain name. The default is\fBrndc\-key\fR..RE.PP\-p \fIport\fR.RS 4Specifies the command channel port where\fBnamed\fRlistens for connections from\fBrndc\fR. The default is 953..RE.PP\-r \fIrandomfile\fR.RS 4Specifies a source of random data for generating the authorization. If the operating system does not provide a\fI/dev/random\fRor equivalent device, the default source of randomness is keyboard input.\fIrandomdev\fRspecifies the name of a character device or file containing random data to be used instead of the default. The special value\fIkeyboard\fRindicates that keyboard input should be used..RE.PP\-s \fIaddress\fR.RS 4Specifies the IP address where\fBnamed\fRlistens for command channel connections from\fBrndc\fR. The default is the loopback address 127.0.0.1..RE.PP\-t \fIchrootdir\fR.RS 4Used with the\fB\-a\fRoption to specify a directory where\fBnamed\fRwill run chrooted. An additional copy of the\fIrndc.key\fRwill be written relative to this directory so that it will be found by the chrooted\fBnamed\fR..RE.PP\-u \fIuser\fR.RS 4Used with the\fB\-a\fRoption to set the owner of the\fIrndc.key\fRfile generated. If\fB\-t\fRis also specified only the file in the chroot area has its owner changed..RE.SH "EXAMPLES".PPTo allow\fBrndc\fRto be used with no manual configuration, run.PP\fBrndc\-confgen \-a\fR.PPTo print a sample\fIrndc.conf\fRfile and corresponding\fBcontrols\fRand\fBkey\fRstatements to be manually inserted into\fInamed.conf\fR, run.PP\fBrndc\-confgen\fR.SH "SEE ALSO".PP\fBrndc\fR(8),\fBrndc.conf\fR(5),\fBnamed\fR(8),BIND 9 Administrator Reference Manual..SH "AUTHOR".PPInternet Systems Consortium.SH "COPYRIGHT"Copyright \(co 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC").brCopyright \(co 2001, 2003 Internet Software Consortium..br
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -