dtrealms1p
Displays defaults defined for dnssec-tools
Usage
dtrealms [options]
<realm-file>
Overview
dtrealms manages multiple distinct DNSSEC-Tools rollover environments running simultaneously. Each rollover environment, called a realm, is defined in a realms file. dtrealms uses this file to determine how the rollover environment must be initialized such that it can run independently of the other rollover environments on a particular system. This is useful for such things as managing very large collections of zones, segregating customer zones, and software tests.
The realms file may be created with realminit. Currently, the distinct environment for each realm must be created manually. It is hoped that a tool will soon be available to assist with creating each realm's environment.
dtrealms isn't necessary for running multiple realms. However, it does make it easier to manage multiple realms running consecutively.
Realm setup
A realm is primarily defined by its entry in a realms file. Four fields in particular describe where the realm's files are located and how it runs. These are the realm's configuration directory, state directory, realm directory, and rollrec file. These directories are used to set the DT_STATEDIR and DT_SYSCONFDIR environment variables, and the rollrec file defines which zones are managed by the realm's rollover manager.
https://www.dnssec-tools.org/wiki/index.php/Rollover_Realms:_Multiple,_Simultaneous,_Independent_Rollover_Environments has more information on creating realms.
configdir-
The
configdirfield of therealmsfile contains the name of the realm's configuration directory. This file gives command paths and configuration values for running the DNSSEC-Tools. The DNSSEC-Tools modules expects this directory hierarchy to contain adnssec-toolssubdirectory, and adnssec-tools.conffile within that subdirectory. The path fields in the configuration file point to various things, such as commands and key archives. It is recommended that these paths only point within theconfigdirhierarchy, other than for system utilities.The
DT_SYSCONFDIRenvironment variable is set to theconfigdirfield. This will tell the DNSSEC-Tools programs and modules where to find their required data.
statedir-
The
statedirfield of therealmsfile contains the name of the realm's state directory. This directory contains such files as therollreclock file and therollerdcommunications socket. If a realm definition does not contain astatedirfield, then that realm will use theconfigdirfield as itsstatedirfield.The
DT_STATEDIRenvironment variable is set to thestatedirfield. This will tell the DNSSEC-Tools programs and modules where to find these files.
realmdir-
The
realmdirfield of therealmsfile contains the name of the directory in which the realm executes. This is where the realm's zone, key, and other files are located.
rollrec-
The
rollrecfield of therealmsfile is the name of the file that controls zone rollover. This file points to the variouskeyrecfiles that define the locations of the zone files and their associated key files. A realm'srollrecfile can locate these files anywhere on the system, but it is strongly recommended that they all remain within the realm'srealmdirhierarchy.
While the DNSSEC-Tools programs will work fine if a realm's configuration, state, and realm directories are actually one directory, it is recommended that at the least the realmdir files be separated from the configdir and statedir files.
It is further recommended that the files for the various realms be segregated from each other.
Options
The following options are handled by dtrealms.
-
-directory -
Directory in which
dtrealmswill be executed. Any relative paths given in realms configuration files will use this directory as their base.
-
-display -
Start the
grandvizierdisplay program to give a graphical indication of realm status.
-
-foreground -
Run
dtrealmsin the foreground instead of as a daemon.
-
-logfile -
Logging file to use.
-
-loglevel -
Logging level to use when writing to the log file. See
rolllog(3)for more details.
-
-logtz -
Time zone to use with the log file. This must be either "gmt" or "local".
-
-Version -
Displays the version information for
dtrealmsand the DNSSEC-Tools package.
-
-help -
Displays a help message and exits.
Warning
This is an early prototype. Consider it to be beta quality.
Releases
2 releases since Debian 7 (Wheezy); the text changed 1 time.