ldns-key2ds(1)
π ldns-key2ds β the glow-up from DNSKEY to DS π
okay bestie, welcome to ldns-key2ds(1), straight outta the General Commands Manual section. she's a little tool, she's from the ldns fam, and she does exactly one thing but she does it flawlessly. let's get into it π«Ά
β¨ NAME β¨
ldns-key2ds β transform a DNSKEY RR to a DS RR
likeβ¦ the whole personality is right there in the name. DNSKEY in, DS out. no cap. π
πΈ SYNOPSIS πΈ
ldns-key2ds file
one argument, that's it, she's low-maintenance. π
π¦ DESCRIPTION π¦
so here's the vibe: ldns-key2ds is used to transform a public DNSKEY RR into a DS RR. that's the entire assignment and she ate.
when you run it, it will read file with a DNSKEY RR in it, and it will create a .ds file with the DS RR in it. boom. iconic. π₯
then it prints out the basename for this file, and that basename looks like this:
K<name>+<alg>+<id>
and by default it takes a pick of algorithm similar to the key algorithm β like, SHA1 for RSASHA1, and so on. she's matching the energy of your key, fr fr. π
ngl that auto-pick is doing a lot of quiet heavy lifting for you. she just knows.
π OPTIONS π
-fβ Ignore the SEP flag (i.e. make DS records for any key). yes bestie, any key, she's not being picky.-nβ Write the result DS Resource Record to stdout instead of a file. so instead of a.dsfile situation, it just goes straight to your terminal. very main character of it. β¨-1β Use SHA1 as the hash function.-2β Use SHA256 as the hash function-gβ Use GOST as the hash function-4β Use SHA384 as the hash function
heads up, the hash-function flags are like a little squad:-1,-2,-g,-4. pick your fighter and go. π
π AUTHOR π
Written by the ldns team as an example for ldns usage.
so yes, she's technically a demo. a showcase piece. a teaching moment that's also genuinely useful. we love a multi-hyphenate. π
π REPORTING BUGS π
Report bugs to <dns-team@nlnetlabs.nl>.
like, if something's acting up, tell the team, don't just suffer in silence bestie, that's not the move. π«Ά
β COPYRIGHT β
Copyright (C) 2005 NLnet Labs. This is free software. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
okay real talk β that "NO warranty" is in ALL CAPS for a reason. no warranty, not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. that's not me being dramatic, that's literally what it says. π
mwah π that's the whole page, and that's the ldns-key2ds(1) experience from the General Commands Manual. shoutout to the 30 May 2005 date stamp and the ldns crew for this lil legend. periodt. ππβ¨
π¦ where this page comes from
- alpine 3.22: ldns-doc 1.8.4-r0 Β· BSD-3-Clause
- alpine 3.23: ldns-doc 1.8.4-r1 Β· BSD-3-Clause
- alpine 3.24: ldns-doc 1.8.4-r1 Β· BSD-3-Clause
- arch rolling: ldns 1.9.2-1 Β· custom:BSD
- debian trixie: ldnsutils 1.8.4-2+b1
- fedora 43: ldns-utils 1.8.4-8.fc43 Β· BSD-3-Clause
- fedora 43: ldns-utils 1.9.2-1.fc43 Β· BSD-3-Clause
- fedora 44: ldns-utils 1.9.0-2.fc44 Β· BSD-3-Clause
- fedora 44: ldns-utils 1.9.2-1.fc44 Β· BSD-3-Clause
- nixos 26.05: ldns 1.9.2
- nixpkgs unstable: ldns 1.9.2
- opensuse-leap 16.0: ldns 1.8.4-160000.3.1 Β· BSD-3-Clause
- opensuse-leap 16.0: ldns 1.8.4-160000.3.1 Β· BSD-3-Clause
- opensuse-leap 16.0: ldns 1.8.4-160000.3.1 Β· BSD-3-Clause
- opensuse-leap 16.0: ldns 1.8.4-160000.3.1 Β· BSD-3-Clause
- ubuntu questing: ldnsutils 1.8.4-2build1
- ubuntu resolute: ldnsutils 1.8.4-2build3
- ubuntu stonking: ldnsutils 1.9.2-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms