KEYARCH(1)
π KEYARCH(1) β the DNSSEC-Tools key archiving era π
okay bestie, so this is keyarch from the User Contributed Perl Documentation, and it's about to be your new fave little cleanup crew. it archives old KSK and ZSK keys and honestly? it's giving janitor but make it β¨iconicβ¨. let's get into it.
β¨ NAME β¨
keyarch β the DNSSEC-Tools daemon that archives your old KSK and ZSK keys ποΈπ
π¦ SYNOPSIS π¦
keyarch [options] <keyrec_file | rollrec_file>
like, options first, then ONE file, and it's either a keyrec file or a rollrec file. pick your fighter. π
π DESCRIPTION π
So keyarch archives old KSK and ZSK keys. and when do we call a key "old"? bestie, when it's revoked or obsolete. that's it, that's the vibe check. π₯
- keys marked as either
kskrevorzskrevare revoked - keys marked as either
kskobsorzskobsare obsolete
Archived keys get prefixed with the seconds-since-epoch, which is how we tell apart a zone's keys that happen to share the same five digit number. no cap, that prefix is doing the heavy lifting. π
Now, about that required file argument:
- if it's a keyrec file, then the expired keys listed in that file get archived.
- if it's a rollrec file, then the keyrec files of the zones in that file get checked for expired keys.
If you pass the -zone option, then only revoked and obsolete keys belonging to the specified zone get archived. narrowing the scope, love that for you. π―
The archive directory is either zone-specific (listed in the zone's keyrec record in the zone's keyrec file) or the default archive directory given in the DNSSEC-Tools configuration file. either way, it knows where to put the stuff. π«Ά
Oh and the count of archived keys is literally the program's exit code. cute, right? Error exit codes are negative though, so if things go sideways, you'll know. π
πΈ OPTIONS πΈ
The following options are recognized, and yes we're listing all of them because we don't skip:
-zonezone_file β Name of the zone whose KSKs will be archived. If this is not given, then all the zones defined in the rollrec file will be checked. π-kskonlyβ Only archive KSK keys. KSK girlies only, ZSKs can stay home. β¨-zskonlyβ Only archive ZSK keys. flip side of the coin, ZSK supremacy today. π«-dtconfigconfig_file β Name of an alternate DNSSEC-Tools configuration file to be processed. If specified, this configuration file is used in place of the normal DNSSEC-Tools configuration file, not in addition to it. Also, it will be handled prior to keyrec files, rollrec files, and command-line options. so it goes first, and it fully replaces the default one β not a duo, it's a solo act. π€-quietβ No output will be given. shhh. π€«-verboseβ Verbose output will be given. tell me EVERYTHING. π£οΈ-helpβ Display a usage message. when you're lost, ask for directions bestie. π§-Versionβ Displays the version information forkeyarchand the DNSSEC-Tools package. the receipts, if you will. π
π EXIT VALUES π
- On success,
keyarch's exit code is the number of keys archived. yes, the exit code is doing math. slay. π’ keyarchhas a 0 exit code if the help message is given. πkeyarchhas a negative exit code if an error is encountered. not the vibe, but at least it's honest. π
π COPYRIGHT π
Copyright 2007-2014 SPARTA, Inc. All rights reserved. See the COPYING file included with the DNSSEC-Tools package for details. ππ
π AUTHOR π
Wayne Morrison, tewok@tislabs.com β thank you for your service king π
π SEE ALSO π
rollerd(8),zonesigner(8)Net::DNS::SEC::Tools::conf.pm(3),Net::DNS::SEC::Tools::dnssectools.pm(3),Net::DNS::SEC::Tools::defaults.pm(3),Net::DNS::SEC::Tools::keyrec.pm(3),Net::DNS::SEC::Tools::rollrec.pm(3)keyrec(5),rollrec(5)
and that's the whole page, bestie π«Ά this one's perl v5.42.0, dated 2025-07-23, so go archive those keys and be the main character of your DNS setup π
β¨ no cap, periodt.
π¦ 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