@gibme/dns
    Preparing search index...

    Class A

    Encoder for DNS A (Address) resource records (Type 1).

    Maps a domain name to an IPv4 address.

    RFC 1035 Section 3.4.1

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Returns A

    Properties

    type: number = 1

    IANA resource record type identifier

    Methods

    • Decodes an A record from the byte stream.

      Parameters

      • reader: Reader

        the byte stream reader

      Returns string

      the decoded IPv4 address string

    • Encodes an A record into the byte stream.

      Parameters

      • writer: Writer

        the byte stream writer

      • address: string

        the IPv4 address string

      Returns void