Type Alias DefaultServerProps<PacketType>

DefaultServerProps<PacketType>: {
    defaultHandler?: Handler;
    multithreaded?: boolean;
    networks: Network<PacketType>[];
    router?: Router;
}

Type Parameters

  • PacketType

Type declaration

  • OptionaldefaultHandler?: Handler

    The default handler used if no handler answers the query. Default behavior is NXDOMAIN response.

  • Optionalmultithreaded?: boolean

    Whether the server should run multithreaded in cluster mode.

    For more information, see the nodejs docs on cluster mode

  • networks: Network<PacketType>[]

    Defines one or more network interfaces for the DNS Server

  • Optionalrouter?: Router

    Defines the router used by the DNS Server to resolve qnames to a handler chain