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 specifically with functionality provided by BIND.
- -rndc rndc-path
rndc is the path to BIND's rndc command.
These options deal specifically with functionality provided by DNSSEC-Tools.
- -admin email-address
admin is the email address of the DNSSEC-Tools administrator. This is the default address used by the dt_adminmail() routine.
- -archivedir directory
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.
- -binddir directory
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.
- -dtdir directory
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.
- -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.
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.
- -roll-logfile logfile
logfile is the logfile for the rollerd daemon.
- -roll-loglevel loglevel
loglevel is the logging level for the rollerd daemon.
- -roll-phasemsg length
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”.
- -roll-sleeptime sleep-time
sleep-time is the sleep-time for the rollerd daemon.
- -roll-username username
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.
- -roll-logtz logtz
loglevel is the timezone of the message timestamp for rollerd's logfile.
- -zoneerrs error-count
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.
- -zoneparser parser-module
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.
- -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 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, email@example.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)