mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
updated to describe current options
This commit is contained in:
152
bin/rndc/rndc.8
152
bin/rndc/rndc.8
@@ -13,7 +13,7 @@
|
|||||||
.\" ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
.\" ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||||
.\" SOFTWARE.
|
.\" SOFTWARE.
|
||||||
.\"
|
.\"
|
||||||
.\" $Id: rndc.8,v 1.2 2000/07/04 01:25:01 tale Exp $
|
.\" $Id: rndc.8,v 1.3 2000/07/10 23:04:42 tale Exp $
|
||||||
.\"
|
.\"
|
||||||
.Dd Jun 30, 2000
|
.Dd Jun 30, 2000
|
||||||
.Dt RDNC 8
|
.Dt RDNC 8
|
||||||
@@ -24,13 +24,13 @@
|
|||||||
.Nd name server control utility
|
.Nd name server control utility
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Nm rndc
|
.Nm rndc
|
||||||
.\" -c option has been zapped for now
|
.Op Fl c Ar config-file
|
||||||
.\" .Op Fl c Ar config-file
|
.Op Fl k Ar key_id
|
||||||
|
.Op Fl M
|
||||||
.Op Fl m
|
.Op Fl m
|
||||||
.Op Fl p Ar port#
|
.Op Fl p Ar port#
|
||||||
.\" -s option has been zapped for now
|
.Op Fl s Ar server
|
||||||
.\" .Op Fl s Ar server
|
.Op Fl v
|
||||||
.Ar server
|
|
||||||
.Ar command ....
|
.Ar command ....
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
This command allows the system administrator to control the operation
|
This command allows the system administrator to control the operation
|
||||||
@@ -38,51 +38,46 @@ of a name server.
|
|||||||
It supersedes the
|
It supersedes the
|
||||||
.Xr ndc 8
|
.Xr ndc 8
|
||||||
utility that was provided in old BIND releases.
|
utility that was provided in old BIND releases.
|
||||||
|
If
|
||||||
.Nm rndc
|
.Nm rndc
|
||||||
uses a secure channel with encryption algorithms and keys to
|
is invoked with no command line options or arguments, it
|
||||||
communicate with the name server.
|
prints a short summary of the supported commands and the available
|
||||||
In the current version of
|
options and their arguments.
|
||||||
.Nm ndc ,
|
|
||||||
the only supported encryption algorithm is HMAC-MD5 which uses a
|
|
||||||
shared secret.
|
|
||||||
This provides TSIG-style authentication for the command request
|
|
||||||
and the name server's response.
|
|
||||||
.Pp
|
.Pp
|
||||||
.Nm
|
.Nm rndc
|
||||||
|
uses a secure channel with digital signatures to communicate
|
||||||
|
with the name server.
|
||||||
|
In the current versions of
|
||||||
|
.Nm rndc
|
||||||
|
and
|
||||||
|
.Xr named 8
|
||||||
|
the only supported encryption algorithm is HMAC-MD5, which uses a
|
||||||
|
shared secret on each end of the connection.
|
||||||
|
This provides TSIG-style authentication for the command request
|
||||||
|
and the name server's response. All commands sent over the channel
|
||||||
|
must be signed by a key_id known to the server.
|
||||||
|
.Pp
|
||||||
|
.Nm rndc
|
||||||
reads its default configuration file,
|
reads its default configuration file,
|
||||||
.Pa /etc/rndc.conf
|
.Pa /etc/rndc.conf
|
||||||
to determine how to contact the name server and decide what algorithm
|
to determine how to contact the name server and decide what algorithm
|
||||||
and keys is should use.
|
and keys is should use.
|
||||||
.\" An alternate configuration file can be specified with the
|
An alternate configuration file can be specified with the
|
||||||
.\" .Ar c
|
.Ar c
|
||||||
.\" option.
|
option.
|
||||||
.\" .Ar config-file
|
.Pp
|
||||||
.\" is the name of the configuration file to use instead of the default
|
|
||||||
.\" one,
|
|
||||||
.\" .Pa /etc/rndc.conf .
|
|
||||||
.\" .Pp
|
|
||||||
.Ar server
|
.Ar server
|
||||||
is the name of the server which matches a
|
is the name or address of the server which matches a
|
||||||
.Dv server{}
|
.Dv server{}
|
||||||
statement in the configuration file for
|
statement in the configuration file for
|
||||||
.Nm rndc .
|
.Nm rndc .
|
||||||
If an explicit null argument is supplied in
|
If no
|
||||||
.Ar server ,
|
.Ar server
|
||||||
.Nm rndc
|
is supplied on the command line, the host named by the
|
||||||
will contact some default name server which is defined by a
|
|
||||||
.Dv default-server
|
.Dv default-server
|
||||||
clause in the
|
clause in the
|
||||||
.Fv options{}
|
.Dv options{}
|
||||||
statement of
|
statement of the configuration file will be used.
|
||||||
.Pa /etc/rndc.conf .
|
|
||||||
.Pp
|
|
||||||
Currently, the
|
|
||||||
.Fl m
|
|
||||||
option makes
|
|
||||||
.Nm rndc
|
|
||||||
print details of its internal memory usage statistics.
|
|
||||||
This option will only be of interest to BIND9 developers and may be
|
|
||||||
removed or changed in a future release.
|
|
||||||
.Pp
|
.Pp
|
||||||
The
|
The
|
||||||
.Fl p
|
.Fl p
|
||||||
@@ -90,19 +85,52 @@ option is used to make
|
|||||||
.Nm rndc
|
.Nm rndc
|
||||||
send commands to TCP port number
|
send commands to TCP port number
|
||||||
.Ar port#
|
.Ar port#
|
||||||
on the system running the name server instead of the default.
|
on the system running the name server instead of BIND 9's
|
||||||
The standard port number used by BIND9 name servers for receiving
|
default control channel port of 953.
|
||||||
control commands is 953.
|
|
||||||
.Pp
|
.Pp
|
||||||
If
|
The
|
||||||
|
.Fl k
|
||||||
|
option identifies the
|
||||||
|
.Ar key_id
|
||||||
|
to use from the configuration file. The
|
||||||
|
.Ar key_id
|
||||||
|
must be known by
|
||||||
|
.Xr named
|
||||||
|
with the same algorithm and secret string in order for
|
||||||
|
control message validation to succeed. If no
|
||||||
|
.Fl k
|
||||||
|
option is provided,
|
||||||
.Nm rndc
|
.Nm rndc
|
||||||
is invoked with no command-line options or arguments, it
|
will first look for a
|
||||||
prints a short summary of the supported commands and the available
|
.Dv key
|
||||||
options and their arguments.
|
clause in the
|
||||||
|
.Dv server{}
|
||||||
|
statement of the server being used, or if no
|
||||||
|
.Dv server{}
|
||||||
|
statement is present for that host, then the
|
||||||
|
.Dv default-key
|
||||||
|
clause of the
|
||||||
|
.Dv options{}
|
||||||
|
statement. Note that .Pp
|
||||||
|
The configuration file for
|
||||||
|
.Nm rdnc
|
||||||
|
contains shared secrets which are used to send authenticated
|
||||||
|
control commands to name servers, and should therefore not have
|
||||||
|
general read or write access.
|
||||||
|
.Pp
|
||||||
|
The
|
||||||
|
.Fl M ,
|
||||||
|
.Fl m ,
|
||||||
|
and
|
||||||
|
.Fl v
|
||||||
|
options provided debugging information and are primarily of interest
|
||||||
|
only to the BIND 9 developers. They might be changed or removed in
|
||||||
|
future releases.
|
||||||
.Pp
|
.Pp
|
||||||
The only valid value for
|
The only valid value for
|
||||||
.Ar command
|
.Ar command
|
||||||
is \*qreload\*q, which forces the name server to reload.
|
is \*qreload\*q, which forces the name server to reload its configuation
|
||||||
|
file and zones.
|
||||||
Further commands will be provided in future releases as the management
|
Further commands will be provided in future releases as the management
|
||||||
capabilities of
|
capabilities of
|
||||||
.Nm rndc
|
.Nm rndc
|
||||||
@@ -118,21 +146,23 @@ offers at least as many management capabilities as the old
|
|||||||
.Xr ndc
|
.Xr ndc
|
||||||
utility.
|
utility.
|
||||||
.Pp
|
.Pp
|
||||||
The configuration file for
|
There is currently no way to provide the shared secret for a key_id
|
||||||
.Nm rdnc
|
without using the configuration file, and thus the
|
||||||
probably contains shared secrets which are used to send authenticated
|
.Fl c
|
||||||
control commands to name servers.
|
option is really required in order for
|
||||||
The file should therefore not have general read or write access.
|
.Nm rndc
|
||||||
|
to issue validly signed commands to
|
||||||
|
.Xr named .
|
||||||
.Pp
|
.Pp
|
||||||
In the current BIND9 release, the name server only listens for
|
Several error messages could be clearer. For example, trying to connect
|
||||||
.Nm rndc
|
from an address that is not in the list of acceptable addresses
|
||||||
commands on the loopback interface, 127.0.0.1.
|
configured into
|
||||||
This means that
|
.Xr named
|
||||||
.Nm rndc
|
will result in the error message "end of file" when the server just
|
||||||
only works on the same system that runs the name server.
|
unceremonisously closes the connection.
|
||||||
This limitation will be removed in a future release.
|
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr named 8 ,
|
|
||||||
.Xr RFC2845 ,
|
|
||||||
.Xr rndc.conf 5 ,
|
.Xr rndc.conf 5 ,
|
||||||
|
.Xr named 8 ,
|
||||||
|
.Xr named.conf 5 ,
|
||||||
|
.Xr RFC2845 ,
|
||||||
.Xr ndc 8 .
|
.Xr ndc 8 .
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
.\" ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
.\" ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||||
.\" SOFTWARE.
|
.\" SOFTWARE.
|
||||||
.\"
|
.\"
|
||||||
.\" $Id: rndc.8,v 1.2 2000/07/04 01:25:01 tale Exp $
|
.\" $Id: rndc.8,v 1.3 2000/07/10 23:04:42 tale Exp $
|
||||||
.\"
|
.\"
|
||||||
.Dd Jun 30, 2000
|
.Dd Jun 30, 2000
|
||||||
.Dt RDNC 8
|
.Dt RDNC 8
|
||||||
@@ -24,13 +24,13 @@
|
|||||||
.Nd name server control utility
|
.Nd name server control utility
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Nm rndc
|
.Nm rndc
|
||||||
.\" -c option has been zapped for now
|
.Op Fl c Ar config-file
|
||||||
.\" .Op Fl c Ar config-file
|
.Op Fl k Ar key_id
|
||||||
|
.Op Fl M
|
||||||
.Op Fl m
|
.Op Fl m
|
||||||
.Op Fl p Ar port#
|
.Op Fl p Ar port#
|
||||||
.\" -s option has been zapped for now
|
.Op Fl s Ar server
|
||||||
.\" .Op Fl s Ar server
|
.Op Fl v
|
||||||
.Ar server
|
|
||||||
.Ar command ....
|
.Ar command ....
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
This command allows the system administrator to control the operation
|
This command allows the system administrator to control the operation
|
||||||
@@ -38,51 +38,46 @@ of a name server.
|
|||||||
It supersedes the
|
It supersedes the
|
||||||
.Xr ndc 8
|
.Xr ndc 8
|
||||||
utility that was provided in old BIND releases.
|
utility that was provided in old BIND releases.
|
||||||
|
If
|
||||||
.Nm rndc
|
.Nm rndc
|
||||||
uses a secure channel with encryption algorithms and keys to
|
is invoked with no command line options or arguments, it
|
||||||
communicate with the name server.
|
prints a short summary of the supported commands and the available
|
||||||
In the current version of
|
options and their arguments.
|
||||||
.Nm ndc ,
|
|
||||||
the only supported encryption algorithm is HMAC-MD5 which uses a
|
|
||||||
shared secret.
|
|
||||||
This provides TSIG-style authentication for the command request
|
|
||||||
and the name server's response.
|
|
||||||
.Pp
|
.Pp
|
||||||
.Nm
|
.Nm rndc
|
||||||
|
uses a secure channel with digital signatures to communicate
|
||||||
|
with the name server.
|
||||||
|
In the current versions of
|
||||||
|
.Nm rndc
|
||||||
|
and
|
||||||
|
.Xr named 8
|
||||||
|
the only supported encryption algorithm is HMAC-MD5, which uses a
|
||||||
|
shared secret on each end of the connection.
|
||||||
|
This provides TSIG-style authentication for the command request
|
||||||
|
and the name server's response. All commands sent over the channel
|
||||||
|
must be signed by a key_id known to the server.
|
||||||
|
.Pp
|
||||||
|
.Nm rndc
|
||||||
reads its default configuration file,
|
reads its default configuration file,
|
||||||
.Pa /etc/rndc.conf
|
.Pa /etc/rndc.conf
|
||||||
to determine how to contact the name server and decide what algorithm
|
to determine how to contact the name server and decide what algorithm
|
||||||
and keys is should use.
|
and keys is should use.
|
||||||
.\" An alternate configuration file can be specified with the
|
An alternate configuration file can be specified with the
|
||||||
.\" .Ar c
|
.Ar c
|
||||||
.\" option.
|
option.
|
||||||
.\" .Ar config-file
|
.Pp
|
||||||
.\" is the name of the configuration file to use instead of the default
|
|
||||||
.\" one,
|
|
||||||
.\" .Pa /etc/rndc.conf .
|
|
||||||
.\" .Pp
|
|
||||||
.Ar server
|
.Ar server
|
||||||
is the name of the server which matches a
|
is the name or address of the server which matches a
|
||||||
.Dv server{}
|
.Dv server{}
|
||||||
statement in the configuration file for
|
statement in the configuration file for
|
||||||
.Nm rndc .
|
.Nm rndc .
|
||||||
If an explicit null argument is supplied in
|
If no
|
||||||
.Ar server ,
|
.Ar server
|
||||||
.Nm rndc
|
is supplied on the command line, the host named by the
|
||||||
will contact some default name server which is defined by a
|
|
||||||
.Dv default-server
|
.Dv default-server
|
||||||
clause in the
|
clause in the
|
||||||
.Fv options{}
|
.Dv options{}
|
||||||
statement of
|
statement of the configuration file will be used.
|
||||||
.Pa /etc/rndc.conf .
|
|
||||||
.Pp
|
|
||||||
Currently, the
|
|
||||||
.Fl m
|
|
||||||
option makes
|
|
||||||
.Nm rndc
|
|
||||||
print details of its internal memory usage statistics.
|
|
||||||
This option will only be of interest to BIND9 developers and may be
|
|
||||||
removed or changed in a future release.
|
|
||||||
.Pp
|
.Pp
|
||||||
The
|
The
|
||||||
.Fl p
|
.Fl p
|
||||||
@@ -90,19 +85,52 @@ option is used to make
|
|||||||
.Nm rndc
|
.Nm rndc
|
||||||
send commands to TCP port number
|
send commands to TCP port number
|
||||||
.Ar port#
|
.Ar port#
|
||||||
on the system running the name server instead of the default.
|
on the system running the name server instead of BIND 9's
|
||||||
The standard port number used by BIND9 name servers for receiving
|
default control channel port of 953.
|
||||||
control commands is 953.
|
|
||||||
.Pp
|
.Pp
|
||||||
If
|
The
|
||||||
|
.Fl k
|
||||||
|
option identifies the
|
||||||
|
.Ar key_id
|
||||||
|
to use from the configuration file. The
|
||||||
|
.Ar key_id
|
||||||
|
must be known by
|
||||||
|
.Xr named
|
||||||
|
with the same algorithm and secret string in order for
|
||||||
|
control message validation to succeed. If no
|
||||||
|
.Fl k
|
||||||
|
option is provided,
|
||||||
.Nm rndc
|
.Nm rndc
|
||||||
is invoked with no command-line options or arguments, it
|
will first look for a
|
||||||
prints a short summary of the supported commands and the available
|
.Dv key
|
||||||
options and their arguments.
|
clause in the
|
||||||
|
.Dv server{}
|
||||||
|
statement of the server being used, or if no
|
||||||
|
.Dv server{}
|
||||||
|
statement is present for that host, then the
|
||||||
|
.Dv default-key
|
||||||
|
clause of the
|
||||||
|
.Dv options{}
|
||||||
|
statement. Note that .Pp
|
||||||
|
The configuration file for
|
||||||
|
.Nm rdnc
|
||||||
|
contains shared secrets which are used to send authenticated
|
||||||
|
control commands to name servers, and should therefore not have
|
||||||
|
general read or write access.
|
||||||
|
.Pp
|
||||||
|
The
|
||||||
|
.Fl M ,
|
||||||
|
.Fl m ,
|
||||||
|
and
|
||||||
|
.Fl v
|
||||||
|
options provided debugging information and are primarily of interest
|
||||||
|
only to the BIND 9 developers. They might be changed or removed in
|
||||||
|
future releases.
|
||||||
.Pp
|
.Pp
|
||||||
The only valid value for
|
The only valid value for
|
||||||
.Ar command
|
.Ar command
|
||||||
is \*qreload\*q, which forces the name server to reload.
|
is \*qreload\*q, which forces the name server to reload its configuation
|
||||||
|
file and zones.
|
||||||
Further commands will be provided in future releases as the management
|
Further commands will be provided in future releases as the management
|
||||||
capabilities of
|
capabilities of
|
||||||
.Nm rndc
|
.Nm rndc
|
||||||
@@ -118,21 +146,23 @@ offers at least as many management capabilities as the old
|
|||||||
.Xr ndc
|
.Xr ndc
|
||||||
utility.
|
utility.
|
||||||
.Pp
|
.Pp
|
||||||
The configuration file for
|
There is currently no way to provide the shared secret for a key_id
|
||||||
.Nm rdnc
|
without using the configuration file, and thus the
|
||||||
probably contains shared secrets which are used to send authenticated
|
.Fl c
|
||||||
control commands to name servers.
|
option is really required in order for
|
||||||
The file should therefore not have general read or write access.
|
.Nm rndc
|
||||||
|
to issue validly signed commands to
|
||||||
|
.Xr named .
|
||||||
.Pp
|
.Pp
|
||||||
In the current BIND9 release, the name server only listens for
|
Several error messages could be clearer. For example, trying to connect
|
||||||
.Nm rndc
|
from an address that is not in the list of acceptable addresses
|
||||||
commands on the loopback interface, 127.0.0.1.
|
configured into
|
||||||
This means that
|
.Xr named
|
||||||
.Nm rndc
|
will result in the error message "end of file" when the server just
|
||||||
only works on the same system that runs the name server.
|
unceremonisously closes the connection.
|
||||||
This limitation will be removed in a future release.
|
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr named 8 ,
|
|
||||||
.Xr RFC2845 ,
|
|
||||||
.Xr rndc.conf 5 ,
|
.Xr rndc.conf 5 ,
|
||||||
|
.Xr named 8 ,
|
||||||
|
.Xr named.conf 5 ,
|
||||||
|
.Xr RFC2845 ,
|
||||||
.Xr ndc 8 .
|
.Xr ndc 8 .
|
||||||
|
Reference in New Issue
Block a user