@gibme/dns
    Preparing search index...

    Class CNAME

    Encoder for DNS CNAME (Canonical Name) resource records (Type 5).

    Maps an alias name to a canonical domain name.

    RFC 1035 Section 3.3.1

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    type: number = 5

    IANA resource record type identifier

    Methods

    • Decodes a CNAME record from the byte stream.

      Parameters

      • reader: Reader

        the byte stream reader positioned at the CNAME RDATA

      Returns string

      the canonical domain name

    • Encodes a CNAME record into the byte stream.

      Parameters

      • writer: Writer

        the byte stream writer to encode into

      • name: string

        the canonical domain name

      • index: CompressionIndex

        compression index for DNS name pointer compression

      Returns void