Documentation
    Preparing search index...
    interface ResolveOptions {
        cache?: IKV;
        retry?: RetryOptions;
        server?: string;
        signal?: AbortSignal;
        timeout?: number;
    }
    Index

    Properties

    cache?: IKV
    retry?: RetryOptions

    Retry options

    By default retries are disabled

    { retries: 5, factor: 2, minTimeout: 1000 }
    
    server?: string

    DoH server JSON endpoint URL

    https://cloudflare-dns.com/dns-query
    https://dns.google/resolve
    signal?: AbortSignal

    Abort signal to abort the request

    timeout?: number

    Timeout in milliseconds for the request

    Defaults to 5000