This section describes common Zone Management activities in OpenDNSSEC.
The details of the command utilities shown below can be found here.
Adding / Removing zones
Zones can be added and removed at will. If the optional parameters are not given, then it will default to the policy default and the /var/opendnssec/ subdirectories.
ods-ksmutil zone add --zone example.com [--policy <policy> --signerconf <signerconf.xml> --input <input> --output <output>]
ods-ksmutil zone delete --zone example.com
This command will report positively with a message like:
zonelist filename set to /etc/opendnssec/zonelist.xml.
SQLite database set to: /var/opendnssec/kasp.db
Imported zone: example.com
Alternatively, you could manually edit the zonelist.xml and then give the command:
ods-ksmutil update zonelist
After zones are added, they will show up in your logs as follows:
ods-enforcerd: Zone example.com found.
ods-enforcerd: Policy for example.com set to default.
ods-enforcerd: Config will be output to /var/opendnssec/signconf/example.com.xml.
If you opened the latter file, you would find the settings that were applied to the zone at the time this file was added.
Updating an unsigned zone
When you update the content of an unsigned zone you must tell the signer engine to re-read the unsigned zone file using the ods-signer command like this:
ods-signer sign example.com
This also have the effect that you schedule the zone for immediate resigning.