Interface DNSServer<PacketType>

interface DNSServer<PacketType> {
    networks: Network<PacketType>[];
    default(req: DNSRequest, res: DNSResponse, next: NextFunction): void;
    handle(domain: string, handler: Handler): void;
    start(callback: (() => void)): void;
    stop(): void;
    use(handler: Handler): void;
}

Type Parameters

  • PacketType

Implemented by

Properties

Methods

Properties

networks: Network<PacketType>[]

Methods