Function resolveHostname

  • Resolve a hostname to all IPv4 and IPv6 hosts. It does an iterative BFS over any CNAME records. This performs proper DNS lookup, it does not use the operating system's resolver. However the default set of DNS servers is inherited from the operating system configuration. The default time limit is practically infinity. This means if the DNS server doesn't respond, this function could take a very long time.

    Parameters

    • hostname: Hostname
    • Optional servers: string[]
    • Optional ctx: Partial<ContextTimed>

    Returns PromiseCancellable<Host[]>

Generated using TypeDoc