LSKRF(1)

πŸ“¦ version 2.2.3, in arch rolling

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: yes
  • zone name β€” default: yes; terse: yes; long: yes
  • zone file β€” default: yes; terse: no; long: yes
  • signed zonefile β€” default: yes; terse: no; long: yes
  • signing date β€” default: yes; terse: no; long: yes
  • expiration date β€” default: no; terse: no; long: yes
  • archive directory β€” default: no; terse: no; long: yes
  • KSK count β€” default: no; terse: no; long: yes
  • KSK directory β€” default: no; terse: no; long: yes
  • current KSK set β€” default: no; terse: no; long: yes
  • published KSK set β€” default: no; terse: no; long: yes
  • ZSK count β€” default: no; terse: no; long: yes
  • ZSK directory β€” default: no; terse: no; long: yes
  • current ZSK set β€” default: no; terse: no; long: yes
  • published ZSK set β€” default: no; terse: no; long: yes
  • new 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: yes
  • set name β€” default: yes; terse: yes; long: yes
  • zone name β€” default: yes; terse: no; long: yes
  • type β€” default: yes; terse: no; long: yes
  • keys β€” default: no; terse: no; long: yes
  • last 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: yes
  • key name β€” default: yes; terse: yes; long: yes
  • algorithm β€” default: no; terse: no; long: yes
  • end date β€” default: no; terse: no; long: yes
  • generation date β€” default: yes; terse: no; long: yes
  • key length β€” default: no; terse: no; long: yes
  • key life β€” default: no; terse: no; long: yes
  • key path β€” default: no; terse: no; long: yes
  • keys β€” default: no; terse: no; long: yes
  • random number generator β€” default: no; terse: no; long: yes
  • zone 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 -obs option 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 -kobs and -zobs options. Bundle deal.
  • -rev β€” This option displays the revoked KSK and ZSK keys in a keyrec file. This option is a shorthand method specifying the -krev and -zrev options.
  • -invalid β€” This option displays the obsolete and revoked KSK and ZSK keys in a keyrec file. This option is a shorthand method specifying the -obs and -rev options. 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 -zones option. Valid zone era.
  • -expired> β€” This option displays the expired zones in a keyrec file. It implies the -zones option. 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 -obs flag 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-kskpub options. 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 -sets option. πŸ‘‘
  • -s-kcur β€” Shows current KSK signing sets. This option implies the -sets option. ✨
  • -s-kobs β€” Shows obsolete KSK signing sets. This option implies the -sets option. πŸ’€
  • -s-kpub β€” Shows published KSK signing sets. This option implies the -sets option. πŸ“£
  • -s-krev β€” Shows revoked KSK signing sets. This option implies the -sets option. 🚫
  • -s-zsk β€” Shows ZSK signing sets. This option implies the -sets option. πŸ’«
  • -s-zcur β€” Shows current ZSK signing sets. This option implies the -sets option. ✨
  • -s-znew β€” Shows new ZSK signing sets. This option implies the -sets option. πŸ†•
  • -s-zobs β€” Shows obsolete ZSK signing sets. This option implies the -sets option. πŸ’€
  • -s-zpub β€” Shows published ZSK signing sets. This option implies the -sets option. πŸ“£
  • -s-zrev β€” Shows revoked ZSK signing sets. This option implies the -sets option. 🚫

πŸ—οΈ 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 -label option. 🏷️
  • -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 for lskrf and 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 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