edgeport - v1.0.6
    Preparing search index...

    Interface DnsConnectOptions

    Options for connect (a reusable session).

    1.0.4

    interface DnsConnectOptions {
        hostname?: string;
        port?: number;
        timeoutMs?: number;
        tls?: "off" | "implicit";
        transport?: "tcp";
    }
    Index
    hostname?: string

    Resolver host to dial; defaults to DEFAULT_RESOLVER (1.1.1.1). Inside a Worker, pass a non-Cloudflare resolver (RESOLVERS.google / RESOLVERS.quad9) - Cloudflare IPs are unreachable from the Workers runtime.

    port?: number

    TCP port; defaults to 53 (plaintext) or 853 (tls: 'implicit').

    timeoutMs?: number

    Per-query read deadline in milliseconds; defaults to 5000.

    tls?: "off" | "implicit"

    Transport security:

    • 'off' (default): plaintext DNS-over-TCP.
    • 'implicit': DNS-over-TLS (DoT) from the first byte (port 853).
    transport?: "tcp"

    Transport; only 'tcp' is supported (Workers cannot open UDP). Defaults to 'tcp'.