KEYMOD(1)
π keymod β bestie edition π
okay so like, this is keymod(1) from the User Contributed Perl Documentation section, and it's literally the glow-up tool for your DNSSEC-Tools keyrec files. no cap. let's get into it π¦
β¨ NAME β¨
keymod β Modifies key parameters in a DNSSEC-Tools keyrec file
β¨ SYNOPSIS β¨
keymod [options] keyrec1 ... keyrecN
πΈ DESCRIPTION πΈ
so keymod changes the key parameters in a keyrec file β and those parameters are the ones used to generate cryptographic keys that sign zones. the new values get picked up by zonesigner when it's generating new keys. it does not touch keys that already exist, okay? those are grandfathered in, they're fine, leave them alone π
zonesigner will use the new parameter for a zone the next time it generates a key that requires that parameter. which means β and this is the part people get confused about, so listen β a new ZSK length won't be used during the next zonesigner run if that run is busy doing KSK-rollover actions. it's giving "patience is a virtue", fr fr π
here's the list of fields you're allowed to modify:
kskcount - count of KSK keys
ksklength - length of KSK keys
ksklife - lifetime of KSK keys
random - random number generator device file
revperiod - revocation period for KSK keys
zskcount - count of ZSK keys
zsklength - length of ZSK keys
zsklife - lifetime of ZSK keys
when you change stuff, new key/value fields get added to the zone keyrec file so zonesigner knows new values should be used. and the key part of those added fields starts with new_. so for example, a new KSK length of 2048 gets written to the keyrec file as:
new_ksklength 2048
okay and now the scope situation: all zone records in the keyrec file you specified get modified β unless you pass the -zone option. in that case only the named zone gets modified. main character zone only, periodt π
and if a zone keyrec already has a new key/value field in it? then the value just gets modified on subsequent runs of keymod. it updates in place, it's very chill about it.
π OPTIONS π
keymod recognizes the following options. and yes, you can combine multiple options in a single keymod execution. go off.
all numeric values must be positive or zero. no negatives, bestie, that's not a vibe.
if you want a new key/value field to be deleted from a zone keyrec, then you specify a zero or empty string value for the appropriate option. poof, gone π§
-zonezonename β The zone keyrec whose name matches zonename is selected as the only keyrec that will be modified. If this name is not given, then all zone keyrec records will be modified.-ksklengthksklength β Theksklengthfield will be modified in the selected keyrec records to the given value. This is a numeric field whose values depend on the cryptographic algorithm to be used to generate keys for the zone.-kskcountkskcount β Thekskcountfield will be modified in the selected keyrec records to the given value. This is a numeric field.-ksklifeksklife β Theksklifefield will be modified in the selected keyrec records to the given value. This is a numeric field.-randomrandom β Therandomfield will be modified in the selected keyrec records to the given value. This is a text field that will be passed to the key generator.-revperiodrevperiod β Therevperiodfield will be modified in the selected keyrec records to the given value. This is a numeric field.-zskcountzskcount β Thezskcountfield will be modified in the selected keyrec records to the given value. This is a numeric field.-zsklengthzsklength β Thezsklengthfield will be modified in the selected keyrec records to the given value. This is a numeric field whose values depend on the cryptographic algorithm to be used to generate keys for the zone.-zsklifezsklife β Thezsklifefield will be modified in the selected keyrec records to the given value. This is a numeric field.-nocheckβ If this option is given, thekrfcheckcommand will not be run on the modified keyrec file.-verboseβ Display information about every modification made to the keyrec file.-Versionβ Displays the version information forkeymodand the DNSSEC-Tools package.-helpβ Display a usage message.
π COPYRIGHT π
Copyright 2012-2014 SPARTA, Inc. All rights reserved. See the COPYING file included with the DNSSEC-Tools package for details.
π AUTHOR π
Wayne Morrison, tewok@tislabs.com
β SEE ALSO β
zonesigner(8),krfcheck(8)Net::DNS::SEC::Tools::keyrec.pm(3)file-keyrec(5)
and that's the whole page, bestie!! this was perl v5.42.0, dated 2025-07-23, and honestly? iconic. go modify those keyrecs responsibly π«Άπ
π¦ where this page comes from
- fedora 43: dnssec-tools 2.2.3-30.fc43 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms