LSKRF(1)
LSKRF(1) β lskrf π
π NAME π
lskrf β list the keyrecs in a DNSSEC-Tools keyrec file. User Contributed Perl Documentation crew, hiiii π«Ά
β¨ SYNOPSIS β¨
lskrf [options] <keyrec-files>
π DESCRIPTION π
Okay so bestie, lskrf lists the contents of the keyrec files you give it. All keyrec files are loaded before anything is displayed. And if any keyrecs have duplicated names β whether that's inside one file or across multiple files β the later keyrec is the one whose data gets displayed. No cap. π
lskrf has three base output formats. In ascending levels of detail, these formats are terse output, default format, and long format. Terse output is given when the -terse option is specified; long output is given when the -long option is specified. β¨
The output displayed for each record in a keyrec file depends on the selected records, the selected attributes, and the selected output format. Each option in these option groups is described in detail in the OPTIONS section; the three basic output formats are described in the OUTPUT FORMATS section. It's giving structured, iconic, and fully documented. π¦
π OUTPUT FORMATS π
keyrec files hold three types of keyrec records: zone records, signing set records, and key records. Each type of keyrec record contains keyrec fields related to that type.
Zone keyrec records contain data about all the keys associated with a particular zone; set keyrec records contain data about all the keys associated with a particular signing set; key keyrec records contain key lengths and algorithms for each particular key. (There is the case of subordinate revoked and obsolete signing sets. These are stored in key keyrec records, but they contain the set_type entry which key keyrecs do not.) π
The data to be printed must be specified by selecting some combination of the -zone, -sets, -keys, and -all options. There are also options for specifying specific types of keys to be printed. π
The three base output formats are the default format, the terse format, and the long format. The -terse option indicates that a minimal amount of output is desired; the -long option indicates that a great deal of output is desired. The record-selection and attribute-selection options may be used in conjunction with -terse to display exactly the set of keyrec fields needed. The default output format is a middle ground between terse and long output and is that used when neither -terse nor -long is given. Vibe check passed: default is the chill middle child. πΈ
π¦ Zone keyrec Output π¦
Here's the zone keyrec field breakdown for each output format, bestie:
keyrec typeβ default:yes; terse:no; long:yeszone nameβ default:yes; terse:yes; long:yeszone fileβ default:yes; terse:no; long:yessigned zonefileβ default:yes; terse:no; long:yessigning dateβ default:yes; terse:no; long:yesexpiration dateβ default:no; terse:no; long:yesarchive directoryβ default:no; terse:no; long:yesKSK countβ default:no; terse:no; long:yesKSK directoryβ default:no; terse:no; long:yescurrent KSK setβ default:no; terse:no; long:yespublished KSK setβ default:no; terse:no; long:yesZSK countβ default:no; terse:no; long:yesZSK directoryβ default:no; terse:no; long:yescurrent ZSK setβ default:no; terse:no; long:yespublished ZSK setβ default:no; terse:no; long:yesnew ZSK setβ default:no; terse:no; long:yes
πΈ Set keyrec Output πΈ
And here's the signing set keyrec field breakdown:
keyrec typeβ default:yes; terse:no; long:yesset nameβ default:yes; terse:yes; long:yeszone nameβ default:yes; terse:no; long:yestypeβ default:yes; terse:no; long:yeskeysβ default:no; terse:no; long:yeslast modification dateβ default:no; terse:no; long:yes
π Key keyrec Output π
And the key keyrec field breakdown, periodt:
keyrec typeβ default:yes; terse:no; long:yeskey nameβ default:yes; terse:yes; long:yesalgorithmβ default:no; terse:no; long:yesend dateβ default:no; terse:no; long:yesgeneration dateβ default:yes; terse:no; long:yeskey lengthβ default:no; terse:no; long:yeskey lifeβ default:no; terse:no; long:yeskey pathβ default:no; terse:no; long:yeskeysβ default:no; terse:no; long:yesrandom number generatorβ default:no; terse:no; long:yeszone nameβ default:yes; terse:no; long:yes
π OPTIONS π
lskrf takes three types of options: record-selection options, record-attribute options, and output-style options. These option sets are detailed below. π«Ά
Record-selection options are required options; at least one record-selection option must be selected. Record-attribute options and output-style options are optional options; any number of these options may be selected. Slay, but make it flags. π
π₯ Record-Selection Options π₯
These options select the types of keyrec that will be displayed.
-allβ This option displays all the records in a keyrec file. Literally all of them.-zonesβ This option displays the zones in a keyrec file.-setsβ This option displays the signing sets in a keyrec file.-keysβ This option displays the keys in a keyrec file.
The key data are sorted by key type in the following order: Current KSKs, Published KSKs, Current ZSKs, Published ZSKs, New ZSKs, Obsolete KSKs, and Obsolete ZSKs. Order matters, bestie. π¦
-kskβ This option displays the KSK keys in a keyrec file.-kcurβ This option displays the Current KSK keys in a keyrec file.-kpubβ This option displays the Published KSK keys in a keyrec file.-kobsβ This option displays the obsolete KSK keys in a keyrec file. This option must be given if obsolete KSK keys are to be displayed. Yes, you actually have to say it.-krevβ This option displays the revoked KSK keys in a keyrec file. This option must be given if revoked KSK keys are to be displayed.-zskβ This option displays the ZSK keys in a keyrec file. It does not include obsolete ZSK keys; the-obsoption must be specified to display obsolete keys. Don't forget the extra flag, okay?-curβ This option displays the Current ZSK keys in a keyrec file.-newβ This option displays the New ZSK keys in a keyrec file.-pubβ This option displays the Published ZSK keys in a keyrec file.-zobsβ This option displays the obsolete ZSK keys in a keyrec file. This option must be given if obsolete ZSK keys are to be displayed.-zrevβ This option displays the revoked ZSK keys in a keyrec file. This option must be given if revoked ZSK keys are to be displayed.-obsβ This option displays the obsolete KSK and ZSK keys in a keyrec file. This option is a shorthand method specifying the-kobsand-zobsoptions. Bundle deal.-revβ This option displays the revoked KSK and ZSK keys in a keyrec file. This option is a shorthand method specifying the-krevand-zrevoptions.-invalidβ This option displays the obsolete and revoked KSK and ZSK keys in a keyrec file. This option is a shorthand method specifying the-obsand-revoptions. All the invalid little meow meows. π
π Record-Attribute Options π
These options select subsets of the keyrecs chosen by the record-selection options.
-validβ This option displays the valid zones in a keyrec file. It implies the-zonesoption. Valid zone era.-expired>β This option displays the expired zones in a keyrec file. It implies the-zonesoption. Yes, that's the option name exactly as written β keep the>bestie.-refβ This option displays the referenced signing set keyrecs and the referenced key keyrecs in a keyrec file, depending upon other selected options.
Referenced state depends on the following:
- Signing sets are considered to be referenced if they are listed in a zone keyrec.
- KSKs are considered to be referenced if they are listed in a signing set keyrec that is listed in a zone keyrec.
- ZSKs are considered to be referenced if they are listed in a signing set keyrec that is listed in a zone keyrec.
This option may be used with either the -sets or -keys options. If it isn't used with any record-selection options, then it is assumed that both -sets and -keys have been specified. Iconic assumption behavior.
-unrefβ This option displays the unreferenced signing set keyrecs or the unreferenced key keyrecs in a keyrec file, depending upon other selected options.
Unreferenced state depends on the following:
- Signing sets are considered to be unreferenced if they are not listed in a zone keyrec.
- KSKs are considered to be unreferenced if they are not listed in a signing set keyrec that is listed in a zone keyrec.
- ZSKs are considered to be unreferenced if they are not listed in a signing set keyrec that is listed in a zone keyrec.
- Obsolete ZSKs are checked, whether or not the
-obsflag was specified. Not me checking obsolete ZSKs anyway.
This option may be used with either the -sets or -keys options. If it isn't used with any record-selection options, then it is assumed that both -sets and -keys have been specified. π«Ά
π§ Zone-Attribute Options π§
These options allow specific zone fields to be included in the output. If combined with the -terse option, only those fields specifically desired will be printed. These options must be used with the -zone option. Zone fields only, bestie. π
-z-archdirβ Display the zone's archive directory. If an archive directory is not explicitly set for the zone, the default directory will be listed.-z-datesβ Display the zone's time-stamps. These are the signing date and the expiration date.-z-dirsβ Display the zone's directories. These directories are the KSK directory, the ZSK directory, and the key archive directory.-z-expdateβ Display the zone's expiration date.-z-kskβ Display the zone's KSK data. This is the equivalent of specifying the-z-kskcount,-z-kskcur,-z-kskdir, and-z-kskpuboptions. Combo meal.-z-kskcountβ Display the zone's KSK count.-z-kskcurβ Display the zone's Current KSK signing set. If this is not defined, then<unset>will be given. Mood: undefined but still showing up.-z-kskdirβ Shows the zone's KSK directory. If it's not defined, you get".". π-z-kskpubβ Shows the zone's Published KSK signing set. If it's not defined, you get<unset>. π«₯-z-setsβ Shows the zone's signing sets. This is literally the equivalent of specifying-z-kskcur,-z-kskpub,-z-zskcur,-z-zsknew, and-z-zskpub. β¨-z-signdateβ Shows the zone's signing date. ποΈ-z-signfileβ Shows the zone's signed zonefile. π-z-zonefileβ Shows the zone's zonefile. π-z-zskβ Shows the zone's ZSK data. This is the equivalent of specifying-z-zskcount,-z-zskcur,-z-zskdir,-z-zsknew, and-z-zskpub. π«-z-zskcountβ Shows the zone's ZSK count. π’-z-zskcurβ Shows the zone's Current ZSK signing set. If it's not defined, you get<unset>. π«₯-z-zskdirβ Shows the zone's ZSK directory. If it's not defined, you get".". π-z-zsknewβ Shows the zone's New ZSK signing set. If it's not defined, you get<unset>. π«₯-z-zskpubβ Shows the zone's Published ZSK signing set. If it's not defined, you get<unset>. π«₯
π Set-Attribute Options π
These options let you pick specific set fields to include in the output. If you combine them with the -terse option, only the fields you specifically want get printed. These options must be used with the -sets option. No cap. β¨
If RFC5011 processing is enabled, there's special handling for the zone's set keyrec of revoked KSK keys. The kskrev field in the zone's keyrec points to a set keyrec marked as being of type kskrev. That set keyrec, in turn, points to a number of other set keyrecs, and all of them are also marked as being of type kskrev. The group of all revoked KSK keys is found by consulting that subsidiary set of kskrev set keyrecs. When the ages of these revoked keys exceed their revocation periods, they're marked as being obsolete (kskobs). If this happens as part of normal rollover, these revoked key and set keyrecs are all removed from the chain of active, revoked keyrecs. If this happens to a key that's part of a larger set of keys, it's removed from that signing set and put in its own new signing set. lskrf displays the type of the kskrev set (listed in the zone keyrec) as KSK-REV, and all other revoked KSK keyrecs are listed as KSK-rev. π
-s-keysβ Shows the set's keys. π-s-lastmodβ Shows the set's date of last modification. π°οΈ-s-typeβ Shows the set's type. π·οΈ-s-zoneβ Shows the set's zone name. π-s-kskβ Shows KSK signing sets. This option implies the-setsoption. π-s-kcurβ Shows current KSK signing sets. This option implies the-setsoption. β¨-s-kobsβ Shows obsolete KSK signing sets. This option implies the-setsoption. π-s-kpubβ Shows published KSK signing sets. This option implies the-setsoption. π£-s-krevβ Shows revoked KSK signing sets. This option implies the-setsoption. π«-s-zskβ Shows ZSK signing sets. This option implies the-setsoption. π«-s-zcurβ Shows current ZSK signing sets. This option implies the-setsoption. β¨-s-znewβ Shows new ZSK signing sets. This option implies the-setsoption. π-s-zobsβ Shows obsolete ZSK signing sets. This option implies the-setsoption. π-s-zpubβ Shows published ZSK signing sets. This option implies the-setsoption. π£-s-zrevβ Shows revoked ZSK signing sets. This option implies the-setsoption. π«
ποΈ Key-Attribute Options ποΈ
These options let you include specific key fields in the output. If you combine them with the -terse option, only the fields you specifically want get printed. These options must be used with the -key option. π
-k-algorithmβ Shows the key's encryption algorithm. π-k-enddateβ Shows the key's end-date, calculated by adding the key's lifespan to its signing date. β³-k-lengthβ Shows the key's length. π-k-lifespanβ Shows the key's lifespan (in seconds). This lifespan is only related to the time between key rollover. There is no other lifespan associated with a key. β±οΈ-k-pathβ Shows the key's path. π£οΈ-k-randomβ Shows the key's random number generator. π²-k-signdateβ Shows the key's signing date. ποΈ-k-zoneβ Shows the key's zonefile. π
π Output-Format Options π
These options define how the keyrec information will be displayed. π«Ά
Without any of these options, the zone name, zone file, zone-signing date, and a label will be displayed for zones. For types, the key name, the key's zone, the key's generation date, and a label will be displayed if these options aren't given. β¨
-countβ The count of matching records will be displayed, but the matching records will not be. π’-nodateβ The key's generation date will not be printed if this flag is given. π«ποΈ-headersβ Displays explanatory column headers. If this flag is given, then entry labels will not be printed unless explicitly requested by use of the-labeloption. π·οΈ-labelβ A label for the keyrec's type will be given. π-longβ The long form of output will be given. See the OUTPUT FORMATS section for details on data printed for each type of keyrec record. π₯
Long zone output can get very wide, depending on the data. π
-terseβ This option displays only the name of the zones or keys selected by other options. π―-Versionβ Displays the version information forlskrfand the DNSSEC-Tools package. π¦-helpβ Display a usage message and exit. π-h-zonesβ Display the zone-attribute options and exit. π-h-setsβ Display the set-attribute options and exit. π§©-h-keysβ Display the key-attribute options and exit. ποΈ
π COPYRIGHT π
Copyright 2005-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)Net::DNS::SEC::Tools::keyrec.pm(3)file-keyrec(5)
π That's the whole page, bestie β this LSKRF(1) cutie is from perl v5.44.0, dated 2026-10-17. Mwah! πβ¨
π¦ where this page comes from
- arch rolling: dnssec-tools 2.2.3-16 Β· BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms