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>"; };
Caution
Make sure that only the root user can read or write to the
/etc/rndc.conf
file.
For more information about the
/etc/rndc.conf
file, refer to the
rndc.conf
man page.
4.3. Command Line Options
An
rndc
command takes the following form:
rndc <options><command><command-options>
When executing
rndc
on a properly configured localhost, the following commands are available:
•
halt
— Stops the
named
service immediately.
•
querylog
— Logs all queries made to this nameserver.
•
refresh
— Refreshes the nameserver's database.
•
reload
— Reloads the zone files but keeps all other previously cached responses. This
command also allows changes to zone files without losing all stored name resolutions.
If changes only affected a specific zone, reload only that specific zone by adding the name of
the zone after the
reload
command.
•
stats
— Dumps the current
named
statistics to the
/var/named/named.stats
file.
•
stop
— Stops the server gracefully, saving any dynamic update and Incremental Zone
Transfers (IXFR) data before exiting.
Occasionally, it may be necessary to override the default settings in the
/etc/rndc.conf
file.
The following options are available:
•
-c <configuration-file>
— Specifies the alternate location of a configuration file.
•
-p <port-number>
— Specifies a port number to use for the
rndc
connection other than port
953, the default.
Command Line Options
229
Summary of Contents for ENTERPRISE LINUX 4.5.0 -
Page 1: ...Red Hat Enterprise Linux 4 5 0 4 5 0 Reference Guide ISBN N A Publication date ...
Page 2: ...Red Hat Enterprise Linux 4 5 0 ...
Page 4: ...Red Hat Enterprise Linux 4 5 0 ...
Page 24: ...xxiv ...
Page 26: ......
Page 36: ...12 ...
Page 72: ...48 ...
Page 112: ...88 ...
Page 122: ...98 ...
Page 140: ...116 ...
Page 142: ......
Page 300: ...276 ...
Page 318: ...294 ...
Page 320: ......
Page 332: ...308 ...
Page 350: ...326 ...
Page 378: ...354 ...
Page 388: ...364 ...
Page 394: ...370 ...
Page 395: ...Part IV Appendixes ...
Page 396: ......