Function resolveDns

  • Performs a DNS lookup to resolve a hostname to an array of IP addresses.

    Parameters

    • hostname: string

    Returns Promise<string[]>

    Example

    const ipAddresses = await Switch.resolveDns('example.com');
    

Generated using TypeDoc