Configuring
/etc/rndc.conf
219
In this case, the
<key-value>
uses the HMAC-MD5 algorithm. Use the following command to
generate keys using the HMAC-MD5 algorithm:
dnssec-keygen -a hmac-md5 -b
<bit-length>
-n HOST
<key-file-name>
A key with at least a 256-bit length is a good idea. The actual key that should be placed in the
<key-
value>
area can be found in the
<key-file-name>
file generated by this command.
Warning
Because
/etc/named.conf
is world-readable, it is advisable to place the
key
statement
in a separate file, readable only by root, and then use an
include
statement to reference
it. For example:
include "/etc/rndc.key";
17.4.2. Configuring
/etc/rndc.conf
The
key
is the most important statement in
/etc/rndc.conf
.
key "
<key-name>
" {
algorithm hmac-md5;
secret "
<key-value>
";
};
The
<key-name>
and
<key-value>
should be exactly the same as their settings in
/etc/
named.conf
.
To match the keys specified in the target server's
/etc/named.conf
, add the following lines to
/
etc/rndc.conf
.
options {
default-server localhost;
default-key "
<key-name>
";
};
This directive sets a global default key. However, the
rndc
configuration file can also specify different
keys for different servers, as in the following example:
server localhost {
key "
<key-name>
";
};
Important
Make sure that only the root user can read or write to the
/etc/rndc.conf
file.
Содержание ENTERPRISE LINUX 5 - VIRTUAL SERVER ADMINISTRATION
Страница 22: ...xxii ...
Страница 28: ......
Страница 36: ...10 ...
Страница 40: ...14 ...
Страница 96: ...70 ...
Страница 116: ...90 ...
Страница 144: ...118 ...
Страница 146: ......
Страница 158: ...132 ...
Страница 165: ...Installing and Removing Packages 139 Figure 11 7 Installing and removing packages simultaneously ...
Страница 166: ...140 ...
Страница 172: ...146 ...
Страница 178: ......
Страница 228: ...202 ...
Страница 264: ...238 ...
Страница 318: ...292 ...
Страница 330: ...304 ...
Страница 388: ...362 ...
Страница 428: ...402 ...
Страница 452: ......
Страница 458: ...432 ...
Страница 476: ...450 ...
Страница 478: ...452 ...
Страница 494: ...468 ...
Страница 498: ...472 ...
Страница 530: ...504 ...
Страница 536: ...510 ...
Страница 544: ...Chapter 36 Log Files 518 Figure 36 7 Log file contents after five seconds ...
Страница 546: ......
Страница 550: ...524 ...
Страница 576: ......
Страница 584: ...558 ...
Страница 608: ......
Страница 776: ...750 ...
Страница 796: ...770 ...
Страница 800: ...774 ...
Страница 804: ......
Страница 806: ...780 ...
Страница 808: ...782 ...
Страница 816: ...790 ...
Страница 820: ...794 ...
Страница 822: ...796 ...
Страница 830: ...804 ...
Страница 836: ...810 ...
Страница 844: ...818 ...
Страница 848: ...822 ...