API reference
Preparing search index…

Dns.resolve

  • Resolve IPv4/IPv6 addresses asynchronously; return undefined on failure. With no servers, use the system resolver without applying timeout. With explicit DNS servers, the default timeout is 1 second.

    Parameters

    hostname
    string
    servers
    readonly IpAddress[] = []
    timeout
    undefined | ReadonlyValue<Time> = ...

    Returns

    Promise<undefined | IpAddress[]>
    Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0