@gibme/dns
    Preparing search index...

    Class Answer<DataType>

    Type Parameters

    • DataType = any
    Index

    Constructors

    Properties

    class: RCLASS

    The resource record class (e.g. IN, CH, HS)

    data: DataType

    The decoded resource record data

    flush: boolean

    Whether cached records should be flushed (mDNS)

    name: string

    The domain name this resource record belongs to

    ttl: number

    The time-to-live in seconds

    type: RTYPE

    The resource record type (e.g. A, AAAA, MX)

    INVALID_RTYPES: Set<string> = ...

    Contains the list of RTypes that we should never have in an answer

    Methods

    • Decodes an Answer from the supplied byte stream

      Parameters

      • buffer: Reader | Buffer<ArrayBufferLike>

      Returns Answer