@gibme/dns
    Preparing search index...

    Class DNSKEY

    Encoder for DNS DNSKEY (DNS Key) resource records (Type 48).

    Holds a public key used for DNSSEC signature verification.

    RFC 4034 Section 2

    Index

    Constructors

    Properties

    PROTOCOL_DNSSEC: 3
    SECURE_ENTRYPOINT: 32768 = 0x8000
    type: number = 48

    IANA resource record type identifier

    ZONE_KEY: 128 = 0x80

    Methods

    • Decodes a DNSKEY record from the byte stream.

      Parameters

      • reader: Reader

        the byte stream reader positioned at the DNSKEY RDATA

      Returns DNSKEY.Record

      the decoded DNSKEY record

    • Encodes a DNSKEY record into the byte stream.

      Parameters

      • writer: Writer

        the byte stream writer to encode into

      • data: Omit<DNSKEY.Record, "protocol">

        the DNSKEY record to encode (protocol is always set to 3)

      Returns void