Zonema...DNSKEY(3pm)
π NAME π
Zonemaster::LDNS::RR::DNSKEY β bestie, it's the Type DNSKEY record class, periodt. π
β¨ DESCRIPTION β¨
Okay so Zonemaster::LDNS::RR::DNSKEY</p> is a subclass of Zonemaster::LDNS::RR, which means it inherited every single method from that class and you get all of those for free on top of the ones written down here. Two-for-one deal, no cap. π«Ά
π METHODS π
flags()β hands you the flag field, as a number. Just a lil number. πprotocol()β gives you back the protocol number.algorithm()β gives you back the algorithm number.keydata()β returns the cryptographic key in binary form.hexkeydata()β same key energy but as a hexadecimal string instead. hex girl autumn fr fr πkeytag()β calculates the keytag. it just does the math for you, iconic πds($hash)β returns aZonemaster::LDNS::RR::DSrecord that matches this key. The argument has to be one of these strings and only these strings:'sha1','sha256','sha384'or'gost'. π§
Heads up bestie β GOST may not be available, and that depends on how your ldns library was compiled. Not my call, not your call, it's the build's call. π
keysize()β the size of the key stored in the record. Here's the breakdown so you're not confused:- For RSA variants, it's the length in bits of the prime number.
- For DSA variants, it's the key's
"T"value (see RFC2536). - For DH, it's the value of the
"prime length"field β and honestly that's probably useless, since DH keys can't have signature records. π - And if there just isn't enough data in the public key field to figure out the key size, you get -1 back. Not an error, just a lil -1. π
πΈ okay that's the whole page, mwah πΈ
This one's a piece of the User Contributed Perl Documentation crew, running on perl v5.42.3, all dated 2026-08-19. Go forth and DNSKEY responsibly, bestie. πβ¨
π¦ where this page comes from
- ubuntu stonking: libzonemaster-ldns-perl 5.0.2+ds-2build1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms