@gibme/dns
    Preparing search index...

    Class TXT

    Encoder for DNS TXT (Text) resource records (Type 16).

    Holds arbitrary text strings, commonly used for SPF, DKIM, and domain verification.

    RFC 1035 Section 3.3.14

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    type: number = 16

    IANA resource record type identifier

    Methods

    • Decodes a TXT record from the byte stream.

      Parameters

      • reader: Reader

        the byte stream reader

      Returns Record<string, string>

      the decoded text strings

    • Encodes a TXT record into the byte stream.

      Parameters

      • writer: Writer

        the byte stream writer

      • data: Record<string, string>

        the text strings to encode

      Returns void