---
name: "Zonemaster::LDNS::RR::KEY"
section: "3pm"
platform: "linux"
package: "libzonemaster-ldns-perl"
version: "4.1.0+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Zonemaster::LDNS::RR::KEY"
---

# Zonemaster::LDNS::RR::KEY(3pm)

Type KEY record

## NAME

Zonemaster::LDNS::RR::KEY - Type KEY record

## DESCRIPTION

A subclass of Zonemaster::LDNS::RR, so it has all the methods of that class available in addition to the ones documented here.

## METHODS

- **flags()**

  Returns the flag field as a number.

- **protocol()**

  Returns the protocol number.

- **algorithm()**

  Returns the algorithm number.

- **keydata()**

  Returns the cryptographic key in binary form.
