resolveDns
resolveDns(hostname
): Promise
<string
[]>
Performs a DNS lookup to resolve a hostname to an array of IP addresses.
Parameters
Parameter | Type |
---|---|
hostname | string |
Returns
Promise
<string
[]>
Example
const ipAddresses = await Switch.resolveDns('example.com');