@gibme/dns
    Preparing search index...

    Class PTR

    Encoder for DNS PTR (Pointer) resource records (Type 12).

    Maps an address to a canonical domain name for reverse DNS lookups.

    RFC 1035 Section 3.3.12

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    type: number = 12

    IANA resource record type identifier

    Methods

    • Decodes a PTR record from the byte stream.

      Parameters

      • reader: Reader

        the byte stream reader

      Returns string

      the target domain name

    • Encodes a PTR record into the byte stream.

      Parameters

      • writer: Writer

        the byte stream writer

      • name: string

        the target domain name

      • index: CompressionIndex

        compression index for DNS name compression

      Returns void