LSKRF(1)
okay bestie, welcome to LSKRF(1) β the manual page you're literally about to devour π
β¨ NAME β¨
lskrf β list the keyrecs in a DNSSEC-Tools keyrec file π
π¦ SYNOPSIS π¦
lskrf [options] <keyrec-files>
πΈ DESCRIPTION πΈ
So lskrf lists the contents of the keyrec files you point it at. Every single keyrec file gets loaded before any output shows up β no half-rendered nonsense, we wait for the whole vibe to arrive. And if some keyrecs have duplicated names? Whether that's inside one file or across multiple files, the later keyrec wins and it's the one whose data get displayed. no cap.
lskrf has three base output formats. In ascending levels of detail they go: terse output, default format, and long format. You get terse when you pass -terse, and you get long when you pass -long. easy.
The output shown for each record in a keyrec file depends on the selected records, the selected attributes, and the selected output format. Every option in those option groups gets a full breakdown in the OPTIONS section, and the three basic output formats get theirs in OUTPUT FORMATS. iykyk π
π₯ 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.) not me remembering that edge case, but okay, it's important
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. -terse means a minimal amount of output is desired; -long means 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 it's the one used when neither -terse nor -long is given. the default is literally the main character π
π Zone keyrec Output
The table below shows the zone keyrec fields displayed for each output format. (I turned it into a list bestie, same facts, cuter delivery.)
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
The table below shows the signing set keyrec fields displayed for each output format.
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
The table below shows the key keyrec fields displayed for each output format.
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. All detailed below, mwah π«Ά
β οΈ Record-selection options are required. At least one record-selection option must be selected, fr fr. Record-attribute options and output-style options are optional β pick any number of them you want, it's your world.
π Record-Selection Options
These options select the types of keyrec that will be displayed.
-allβ displays all the records in a keyrec file. everything, the whole buffet-zonesβ displays the zones in a keyrec file.-setsβ displays the signing sets in a keyrec file.-keysβ displays the keys in a keyrec file.
The key data are sorted by key type in this order: Current KSKs, Published KSKs, Current ZSKs, Published ZSKs, New ZSKs, Obsolete KSKs, and Obsolete ZSKs. a whole lineup, very curated
-kskβ displays the KSK keys in a keyrec file.-kcurβ displays the Current KSK keys in a keyrec file.-kpubβ displays the Published KSK keys in a keyrec file.-kobsβ displays the obsolete KSK keys in a keyrec file. This option must be give if obsolete KSK keys are to be displayed.-krevβ displays the revoked KSK keys in a keyrec file. This option must be give if revoked KSK keys are to be displayed.-zskβ 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 that part bestie-curβ displays the Current ZSK keys in a keyrec file.-newβ displays the New ZSK keys in a keyrec file. β¨-pubβ displays the Published ZSK keys in a keyrec file.-zobsβ displays the obsolete ZSK keys in a keyrec file. This option must be give if obsolete ZSK keys are to be displayed.-zrevβ displays the revoked ZSK keys in a keyrec file. This option must be give if revoked ZSK keys are to be displayed.-obsβ displays the obsolete KSK and ZSK keys in a keyrec file. This option is a shorthand method specifying the-kobsand-zobsoptions. π―-revβ displays the revoked KSK and ZSK keys in a keyrec file. This option is a shorthand method specifying the-krevand-zrevoptions. π―-invalidβ displays the obsolete and revoked KSK and ZSK keys in a keyrec file. This option is a shorthand method specifying the-obsand-revoptions. π―
π¦ Record-Attribute Options
These options select subsets of the keyrecs chosen by the record-selection options. yes, they're the picky little filter besties
-validβ displays the valid zones in a keyrec file. It implies the-zonesoption.-expired>β displays the expired zones in a keyrec file. It implies the-zonesoption.-refβ 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.
-unrefβ 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.
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. so like, terse + these = exactly the vibes you asked for, nothing more
β οΈ These options must be used with the -zone option. periodt.
-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. π―-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. literally prints that, quotes and all-z-kskdirβ shows the zone's KSK directory. if that's not defined, bestie, you just get.π-z-kskpubβ shows the zone's Published KSK signing set. not defined? you get<unset>π«Ά-z-setsβ shows the zone's signing sets. this is literally the same as asking for-z-kskcur,-z-kskpub,-z-zskcur,-z-zsknew, and-z-zskpuball at once. the way she does everything in one go πβ¨-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. equivalent to specifying-z-zskcount,-z-zskcur,-z-zskdir,-z-zsknew, and-z-zskpubtogether. combo meal π-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. undefined?.it is, no cap β¨-z-zsknewβ shows the zone's New ZSK signing set. undefined β<unset>π-z-zskpubβ shows the zone's Published ZSK signing set. undefined β<unset>πΈ
π Set-Attribute Options π
these options let you pull specific set fields into the output. pair them with -terse and only the fields you actually asked for get printed β very only what i ordered of you π
β οΈ these options must be used with the-setsoption. no-sets, no set fields, that's the rule π«Ά
okay so now the RFC5011 tea, because it's a whole situation. if RFC5011 processing is enabled, there's special handling of 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 then points to a bunch 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 exceeds their revocation periods, they get 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. and 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. very i'm my own person now energy π¦
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. case matters, don't come for me π
-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 let you pull specific key fields into the output. combine with -terse and only the fields you specifically wanted get printed. so precise of you π
β οΈ these options must be used with the -key option. periodt π«Ά
-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. that's it, that's the whole lifespan lore β³-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 gets displayed. the aesthetic choices, if you will β¨
so with none of these options given: for zones, the zone name, zone file, zone-signing date, and a label get displayed. for types, the key name, the key's zone, the key's generation date, and a label get displayed if these options aren't given. default vibe check passed π«Ά
-countβ the count of matching records gets displayed, but the matching records themselves will not be. just the number, bestie π’-nodateβ the key's generation date will not be printed if this flag is given π-headersβ display 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. she does not do subtle π
-terseβ this option displays only the name of the zones or keys selected by other options. minimalism, we love her π-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)
and that's the whole page, bestie, you made it π₯³ this was lskrf from perl v5.42.0, dated 2025-07-23, living in section LSKRF(1) of the manual. go forth and list those keyrecs, you absolute icon πππ¦
π¦ 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