KEYMOD(1)

πŸ“¦ version 2.2.3, in arch rolling

πŸ’… KEYMOD(1) πŸ’…

🌸 NAME 🌸

okay so bestie, this is keymod β€” straight from the User Contributed Perl Documentation β€” and it modifies key parameters in a DNSSEC-Tools keyrec file. πŸ’–

✨ SYNOPSIS ✨

  keymod [options] keyrec1 ... keyrecN

πŸ¦‹ DESCRIPTION πŸ¦‹

keymod modifies the key parameters in a keyrec file that are used to generate cryptographic keys used to sign zones. The new parameters will be used by zonesigner when generating new keys. It has no effect on existing keys, bestie β€” none. πŸ’€

zonesigner will use the new parameter for a zone the next time it generates a key that requires that parameter. This means that, for example, a new ZSK length will not be used during the next invocation of zonesigner if that invocation will be performing KSK-rollover actions.

The following fields may be modified:

  • 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

New key/value fields will be added to a zone keyrec file to inform zonesigner that new values should be used. The key portion of the added fields will begin with "new_". For example, a new KSK length of 2048 will be written to the keyrec file as:

new_ksklength        2048

All zone records in the specified keyrec file will be modified, unless the -zone option is given. In that case, only the named zone will be modified. πŸŽ€

If a zone keyrec already contains a new key/value field, then the value will be modified on subsequent runs of keymod.

🌈 OPTIONS 🌈

keymod recognizes the following options. Multiple options may be combined in a single keymod execution. πŸ’…

All numeric values must be positive or zero.

If a new key/value field should be deleted from a zone keyrec, then a zero or empty string value should be specified for the appropriate option.

  • -zone zonename β€” 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.
  • -ksklength ksklength β€” The ksklength field 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.
  • -kskcount kskcount β€” The kskcount field will be modified in the selected keyrec records to the given value. This is a numeric field.
  • -ksklife ksklife β€” The ksklife field will be modified in the selected keyrec records to the given value. This is a numeric field.
  • -random random β€” The random field 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.
  • -revperiod revperiod β€” The revperiod field will be modified in the selected keyrec records to the given value. This is a numeric field.
  • -zskcount zskcount β€” The zskcount field will be modified in the selected keyrec records to the given value. This is a numeric field.
  • -zsklength zsklength β€” The zsklength field 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.
  • -zsklife zsklife β€” The zsklife field will be modified in the selected keyrec records to the given value. This is a numeric field.
  • -nocheck β€” If this option is given, the krfcheck command 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 for keymod and the DNSSEC-Tools package.
  • -help β€” Display a usage message.

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)

mwah πŸ’‹ that’s the whole vibe. This page is from perl v5.44.0, dated 2026-10-17, and it’s still living under KEYMOD(1) β€” periodt. βœ¨πŸ¦‹

πŸ“¦ where this page comes from