dtinitconf1p
Creates a dnssec-tools configuration file
Usage
dtinitconf [options]
Overview
The dtinitconf program initializes the DNSSEC-Tools configuration file. By default, the actual configuration file will be created, though the created file can be specified by the user. Existing files, whether the default or one specified by the user, will not be overwritten unless specifically directed by the user.
Each configuration field can be individually specified on the command line. The user will also be prompted for the fields, with default values taken from the DNSSEC-Tools defaults.pm module. If the -noprompt option is given, then a default configuration file (modulo command-line arguments) will be created.
Configuration entries are created for several BIND programs. Several locations on the system are searched to find the locations of these programs. First, the directories in the path environment variable are checked; the names of any directories that contain the BIND programs are saved. Next, several common locations for BIND programs are checked; again, the names of directories that contain the BIND programs are saved. After collecting these directories, the user is presented with this list and may choose to use whichever set is desired. If no directories are found that contain the BIND programs, the user is prompted for the proper location.
If the configuration file's parent directory does not exist, then an attempt is made to create the directory. The new directory's ownership will be set to root for the owner and dnssec for the group, assuming the dnssec group exists. Writability checks for the directory will not be performed if the -outfile option is given.
Options
dtinitconf takes options that control the contents of the newly generated DNSSEC-Tools configuration file. Each configuration file entry has a corresponding command-line option. The options, described below, are ordered in logical groups.
Key-related Options
These options deal with different aspects of creating and managing encryption keys.
-
-algorithm algorithm -
Selects the cryptographic algorithm. The value of algorithm must be one that is recognized by the installed version of
dnssec-keygen.
-
-kskcount KSK-count -
The default number of KSK keys that will be created for a zone.
-
-ksklength keylen -
The default KSK key length to be passed to
dnssec-keygen.
-
-ksklife lifespan -
The default length of time between KSK rollovers. This is measured in seconds. This value must be within the range of the
minlifeandmaxlifevalues.This value is
onlyused for key rollover. Keys do not have a life-time in any other sense.
-
-maxlife maxlifespan -
The maximum length of time between key rollovers. This is measured in seconds. The
ksklifeandzsklifevalues must be not greater than this value.This value is
onlyused for key rollover. Keys do not have a life-time in any other sense.
-
-minlife minlifespan -
The minimum length of time between key rollovers. This is measured in seconds. The
ksklifeandzsklifevalues must be not less than this value.This value is
onlyused for key rollover. Keys do not have a life-time in any other sense.
-
-zskcount ZSK-count -
The default number of ZSK keys that will be created for a zone.
-
-zsklength keylen -
The default ZSK key length to be passed to
dnssec-keygen.
-
-zsklife lifespan -
The default length of time between ZSK rollovers. This is measured in seconds. This value must be within the range of the
minlifeandmaxlifevalues.This value is
onlyused for key rollover. Keys do not have a life-time in any other sense.
-
-random randomdev -
The random device generator to be passed to
dnssec-keygen.
Zone-related Options
These options deal with different aspects of zone signing.
-
-endtime endtime -
The zone default expiration time to be passed to
dnssec-signzone.
trustman-related Options
These options deal with different aspects of executing trustman.
-
-genroothints roothints -
A new
root.hintsfile will be created at the specified location.dtinitconfrequires that the file not already exist.The
root.hintsfile is retrieved fromhttp://www.internic.net/zones/named.root. It is not considered a fatal error ifdtinitconfis unable to fetch the file. Rather, a warning message will be given and creation of the configuration file will continue.
-
-ta-contact email -
The email address of the
trustmanadministrator.
-
-ta-resolvconf resolvconffile -
The location of the
resolv.conffile.
-
-ta-smtpserver hostname -
The SMTP server for the
trustmancommand.
-
-ta-tmpdir hostname -
The temporary directory for the
trustmancommand.
BIND Options
These options deal specifically with functionality provided by BIND.
-
-rndc rndc-path -
rndcis the path to BIND'srndccommand.
DNSSEC-Tools Options
These options deal specifically with functionality provided by DNSSEC-Tools.
-
-admin email-address -
adminis the email address of the DNSSEC-Tools administrator. This is the default address used by the dt_adminmail() routine.
-
-archivedir directory -
directoryis the archived-key directory. Old encryption keys are moved to this directory, but only if they are to be saved and not deleted.
-
-autosign -
A flag indicating that
rollerdshould automatically sign zonefiles that are found to be newer than their signed zonefile. If-noautosignis specified, this will be set to false.
-
-binddir directory -
directoryis the directory holding the BIND programs. If the reserved word "path" is specified, then existence of the BIND programs is not verified whendtinitconfis executed. Rather, the user's PATH directories will be searched for the BIND programs when the DNSSEC-Tools are executed.
-
-dtdir directory -
directoryis the directory holding the DNSSEC-Tools programs. If the reserved word "path" is specified, then existence of the DNSSEC-Tools programs is not verified whendtinitconfis executed. Rather, the user's PATH directories will be searched for the DNSSEC-Tools programs when those tools are executed.
-
-entropy_msg -
A flag indicating that
zonesignershould display a message about entropy generation. This is primarily dependent on the implementation of a system's random number generation.
-
-mailer-server host -
The mail server that will be contacted by dt_adminmail(). This is passed to Mail::Send.
-
-mailer-server mailtype -
The mail type that will be contacted by dt_adminmail(). This is passed to Mail::Mailer (by way of Mail::Send.) Any values recognized by Mail::Mailer may be used here.
-
-noentropy_msg -
A flag indicating that
zonesignershould not display a message about entropy generation. This is primarily dependent on the implementation of a system's random number generation.
-
-roll-loadzone
-
-no-roll-loadzone -
Flags indicating whether or not
rollerdshould have the DNS daemon load zones.
-
-roll-logfile logfile -
logfileis the logfile for therollerddaemon.
-
-roll-loglevel loglevel -
loglevelis the logging level for therollerddaemon.
-
-roll-phasemsg length -
lengthis the default length of phase-related log messages used byrollerd. The valid levels are "long" and "short", with "long" being the default value.The long message length means that a phase description will be included with some log messages. For example, the long form of a message about ZSK rollover phase 3 will look like this: "ZSK phase 3 (Waiting for old zone data to expire from caches)".
The short message length means that a phase description will not be included with some log messages. For example, the short form of a message about ZSK rollover phase 3 will look like this: "ZSK phase 3".
-
-roll-sleeptime sleep-time -
sleep-timeis the sleep-time for therollerddaemon.
-
-roll-username username -
usernameis the user for which therollerddaemon will be executed. If this is a username, it must correspond to a valid uid; if it is a uid, it must correspond to a valid username.
-
-roll-logtz logtz -
loglevelis the timezone of the message timestamp forrollerd's logfile.
-
-zoneerrs error-count -
error-countis the maximum error count for zones used by therollerddaemon.
-
-savekeys -
A flag indicating that old keys should be moved to the archive directory.
-
-nosavekeys -
A flag indicating that old keys should not be moved to the archive directory but will instead be left in place.
-
-usegui -
A flag indicating that the GUI for specifying command options may be used.
-
-nousegui -
A flag indicating that the GUI for specifying command options should not be used.
-
-zoneparser parser-module -
parser-moduleis the name of the Perl module that will be used to parse zone files. The default is specified in dnssec_tools_default().
dtinitconf Options
These options deal specifically with dtinitconf.
-
-outfile conffile -
The configuration file will be written to
conffile. If this is not given, then the default configuration file (as returned by Net::DNS::SEC::Tools::conf::getconffile()) will be used.If
conffileis given as-, then the new configuration file will be written to the standard output.conffilemust be writable.
-
-overwrite -
If
-overwriteis specified, existing output files may be overwritten. Without-overwrite, if the output file is found to exist thendtinitconfwill give an error message and exit.
-
-noprompt -
If
-nopromptis specified, the user will not be prompted for any input. The configuration file will be created from command-line options and DNSSEC-Tools defaults. Guesses will be made for the BIND paths, based on the PATH environment variable.WARNING: After using the
-nopromptoption, the configuration filemustbe checked to ensure that the defaults are appropriate and acceptable for the installation.
-
-template -
If
-templateis specified, a default configuration file is created. However, all entries are commented out.The only command line options that may be used in conjunction with
-templateare-outfileand-overwrite.
-
-edit -
If
-editis specified, the output file will be edited after it has been created. The EDITOR environment variable is consulted for the editor to use. If the EDITOR environment variable isn't defined, then thevieditor will be used.
-
-verbose -
Provide verbose output.
-
-Version -
Displays the version information for
dtinitconfand the DNSSEC-Tools package.
-
-help -
Display a usage message and exit.
Releases
3 releases since Debian 6.0 (Squeeze); the text changed 2 times.
-autosign since Debian 7 (Wheezy);
-mailer-server since Debian 7 (Wheezy);
-roll-logtz since Debian 7 (Wheezy);
-roll-phasemsg since Debian 7 (Wheezy);
-zoneerrs since Debian 7 (Wheezy);
-zoneparser since Arch Linux 2026-11-01.