DTINITCONF(1) User Contributed Perl Documentation DTINITCONF(1)

dtinitconf - Creates a DNSSEC-Tools configuration file

dtinitconf [options]

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.

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.

These options deal with different aspects of creating and managing encryption keys.

Selects the cryptographic algorithm. The value of algorithm must be one that is recognized by the installed version of dnssec-keygen.
The default number of KSK keys that will be created for a zone.
The default KSK key length to be passed to dnssec-keygen.
The default length of time between KSK rollovers. This is measured in seconds. This value must be within the range of the minlife and maxlife values.

This value is only used for key rollover. Keys do not have a life-time in any other sense.

The maximum length of time between key rollovers. This is measured in seconds. The ksklife and zsklife values must be not greater than this value.

This value is only used for key rollover. Keys do not have a life-time in any other sense.

The minimum length of time between key rollovers. This is measured in seconds. The ksklife and zsklife values must be not less than this value.

This value is only used for key rollover. Keys do not have a life-time in any other sense.

The default number of ZSK keys that will be created for a zone.
The default ZSK key length to be passed to dnssec-keygen.
The default length of time between ZSK rollovers. This is measured in seconds. This value must be within the range of the minlife and maxlife values.

This value is only used for key rollover. Keys do not have a life-time in any other sense.

The random device generator to be passed to dnssec-keygen.

These options deal with different aspects of zone signing.

The zone default expiration time to be passed to dnssec-signzone.

These options deal with different aspects of executing trustman.

A new root.hints file will be created at the specified location. dtinitconf requires that the file not already exist.

The root.hints file is retrieved from http://www.internic.net/zones/named.root. It is not considered a fatal error if dtinitconf is unable to fetch the file. Rather, a warning message will be given and creation of the configuration file will continue.

The email address of the trustman administrator.
The location of the resolv.conf file.
The SMTP server for the trustman command.
The temporary directory for the trustman command.

These options deal specifically with functionality provided by BIND.

rndc is the path to BIND's rndc command.

These options deal specifically with functionality provided by DNSSEC-Tools.

admin is the email address of the DNSSEC-Tools administrator. This is the default address used by the dt_adminmail() routine.
directory is the archived-key directory. Old encryption keys are moved to this directory, but only if they are to be saved and not deleted.
A flag indicating that rollerd should automatically sign zonefiles that are found to be newer than their signed zonefile. If -noautosign is specified, this will be set to false.
directory is the directory holding the BIND programs. If the reserved word "path" is specified, then existence of the BIND programs is not verified when dtinitconf is executed. Rather, the user's PATH directories will be searched for the BIND programs when the DNSSEC-Tools are executed.
directory is the directory holding the DNSSEC-Tools programs. If the reserved word "path" is specified, then existence of the DNSSEC-Tools programs is not verified when dtinitconf is executed. Rather, the user's PATH directories will be searched for the DNSSEC-Tools programs when those tools are executed.
A flag indicating that zonesigner should display a message about entropy generation. This is primarily dependent on the implementation of a system's random number generation.
The mail server that will be contacted by dt_adminmail(). This is passed to Mail::Send.
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.
A flag indicating that zonesigner should not display a message about entropy generation. This is primarily dependent on the implementation of a system's random number generation.
Flags indicating whether or not rollerd should have the DNS daemon load zones.
logfile is the logfile for the rollerd daemon.
loglevel is the logging level for the rollerd daemon.
length is the default length of phase-related log messages used by rollerd. 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".

sleep-time is the sleep-time for the rollerd daemon.
username is the user for which the rollerd daemon 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.
loglevel is the timezone of the message timestamp for rollerd's logfile.
error-count is the maximum error count for zones used by the rollerd daemon.
A flag indicating that old keys should be moved to the archive directory.
A flag indicating that old keys should not be moved to the archive directory but will instead be left in place.
A flag indicating that the GUI for specifying command options may be used.
A flag indicating that the GUI for specifying command options should not be used.
parser-module is the name of the Perl module that will be used to parse zone files. The default is specified in dnssec_tools_default().

These options deal specifically with dtinitconf.

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 conffile is given as -, then the new configuration file will be written to the standard output.

conffile must be writable.

If -overwrite is specified, existing output files may be overwritten. Without -overwrite, if the output file is found to exist then dtinitconf will give an error message and exit.
If -noprompt is 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 -noprompt option, the configuration file must be checked to ensure that the defaults are appropriate and acceptable for the installation.

If -template is 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 -template are -outfile and -overwrite.

If -edit is 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 the vi editor will be used.
Provide verbose output.
Displays the version information for dtinitconf and the DNSSEC-Tools package.
Display a usage message and exit.

Copyright 2006-2014 SPARTA, Inc. All rights reserved. See the COPYING file included with the DNSSEC-Tools package for details.

Wayne Morrison, tewok@tislabs.com

dnssec-keygen(8), dnssec-signzone(8), named-checkzone(8), keyarch(8), rollckk(8), rollerd(8), zonesigner(8)

Net::DNS::SEC::Tools::conf.pm(3), Net::DNS::SEC::Tools::defaults.pm(3), Net::DNS::SEC::Tools::dnssectools.pm(3), Net::DNS::SEC::Tools::tooloptions.pm(3), QWizard.pm(3)

dnssec-tools.conf(5)

2024-09-01 perl v5.40.0