⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rndc.conf.5

📁 bind 9.3结合mysql数据库
💻 5
字号:
.\" Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC").\" Copyright (C) 2000, 2001  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.conf.5,v 1.21.206.2 2004/06/03 05:35:50 marka Exp $.\".TH "RNDC.CONF" "5" "June 30, 2000" "BIND9" "".SH NAMErndc.conf \- rndc configuration file.SH SYNOPSIS.sp\fBrndc.conf\fR.SH "DESCRIPTION".PP\fIrndc.conf\fR is the configuration filefor \fBrndc\fR, the BIND 9 name server controlutility. This file has a similar structure and syntax to\fInamed.conf\fR. Statements are enclosedin braces and terminated with a semi-colon. Clauses inthe statements are also semi-colon terminated. The usualcomment styles are supported:.PPC style: /* */.PPC++ style: // to end of line.PPUnix style: # to end of line.PP\fIrndc.conf\fR is much simpler than\fInamed.conf\fR. The file uses threestatements: an options statement, a server statementand a key statement..PPThe \fBoptions\fR statement contains three clauses.The \fBdefault-server\fR clause is followed by thename or address of a name server. This host will be used whenno name server is given as an argument to\fBrndc\fR. The \fBdefault-key\fRclause is followed by the name of a key which is identified bya \fBkey\fR statement. If no\fBkeyid\fR is provided on the rndc command line,and no \fBkey\fR clause is found in a matching\fBserver\fR statement, this default key will beused to authenticate the server's commands and responses. The\fBdefault-port\fR clause is followed by the portto connect to on the remote name server. If no\fBport\fR option is provided on the rndc commandline, and no \fBport\fR clause is found in amatching \fBserver\fR statement, this default portwill be used to connect..PPAfter the \fBserver\fR keyword, the server statementincludes a string which is the hostname or address for a nameserver. The statement has two possible clauses:\fBkey\fR and \fBport\fR. The key name mustmatch the name of a key statement in the file. The port numberspecifies the port to connect to..PPThe \fBkey\fR statement begins with an identifyingstring, the name of the key. The statement has two clauses.\fBalgorithm\fR identifies the encryption algorithmfor \fBrndc\fR to use; currently only HMAC-MD5 issupported. This is followed by a secret clause which containsthe base-64 encoding of the algorithm's encryption key. Thebase-64 string is enclosed in double quotes..PPThere are two common ways to generate the base-64 string for thesecret. The BIND 9 program \fBrndc-confgen\fR canbe used to generate a random key, or the\fBmmencode\fR program, also known as\fBmimencode\fR, can be used to generate a base-64string from known input. \fBmmencode\fR does notship with BIND 9 but is available on many systems. See theEXAMPLE section for sample command lines for each..SH "EXAMPLE".sp.nf    options {        default-server  localhost;        default-key     samplekey;      };      server localhost {        key             samplekey;      };      key samplekey {        algorithm       hmac-md5;        secret          "c3Ryb25nIGVub3VnaCBmb3IgYSBtYW4gYnV0IG1hZGUgZm9yIGEgd29tYW4K";      };    .sp.fi.PPIn the above example, \fBrndc\fR will by default usethe server at localhost (127.0.0.1) and the key called samplekey.Commands to the localhost server will use the samplekey key, whichmust also be defined in the server's configuration file with thesame name and secret. The key statement indicates that samplekeyuses the HMAC-MD5 algorithm and its secret clause contains thebase-64 encoding of the HMAC-MD5 secret enclosed in double quotes..PPTo generate a random secret with \fBrndc-confgen\fR:.PP\fBrndc-confgen\fR.PPA complete \fIrndc.conf\fR file, including therandomly generated key, will be written to the standardoutput. Commented out \fBkey\fR and\fBcontrols\fR statements for\fInamed.conf\fR are also printed..PPTo generate a base-64 secret with \fBmmencode\fR:.PP\fBecho "known plaintext for a secret" | mmencode\fR.SH "NAME SERVER CONFIGURATION".PPThe name server must be configured to accept rndc connections andto recognize the key specified in the \fIrndc.conf\fRfile, using the controls statement in \fInamed.conf\fR.See the sections on the \fBcontrols\fR statement in theBIND 9 Administrator Reference Manual for details..SH "SEE ALSO".PP\fBrndc\fR(8),\fBrndc-confgen\fR(8),\fBmmencode\fR(1),\fIBIND 9 Administrator Reference Manual\fR..SH "AUTHOR".PPInternet Systems Consortium

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -