@gibme/dns
    Preparing search index...

    Class OPT

    Encoder for DNS OPT (Option) pseudo-resource records (Type 41).

    Carries EDNS(0) extension information in DNS messages.

    RFC 6891

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    type: number = 41

    IANA resource record type identifier

    Methods

    • Decodes an OPT record from the byte stream.

      Parameters

      • reader: Reader

        the byte stream reader

      Returns OPT.Record

      the decoded OPT record

    • Encodes an OPT record into the byte stream.

      Parameters

      • writer: Writer

        the byte stream writer

      • data: OPT.Record

        the OPT record to encode

      Returns void