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 a Zonemaster::LDNS::RR::DS record 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