Class DNSRequest

Default class representing a DNS Request.

DNS Requests contain the serialized packet data, and data about the connection.

Implements

Constructors

Properties

Methods

Constructors

Properties

connection: Connection

The connection object representing the client connection

extra: undefined | object

Any extra data that can be attached to the request. Handlers should use this object to attach any extra metadata if desired

metadata: MessageMetadata

The metadata object for the response

Methods

  • Return an object representing the data contained in the request.

    Returns {
        connection: Connection;
        extra?: object;
        metadata: MessageMetadata;
        packet: Packet;
    }

    The data object containing the packet, connection, and metadata.