Function: resolveHostIps()
resolveHostIps(
input):Promise<string[]>
Resolve the host of input to its IP address(es) via the OS resolver
(dns.lookup with all: true, so both A and AAAA records are returned when
the host is dual-stacked). Accepts any net.UrlLike - a bare hostname, a full
URL, or a { url } wrapper - and returns the deduplicated list of literal
addresses. Never throws: an unparseable input, an IP-literal host (returned
as-is without a DNS round-trip), or a resolution failure all yield the
appropriate list or [].
dns.lookup (not resolve4 / resolve6) is used so /etc/hosts and the
platform resolver order are honored, matching what an outbound connection to
the host would actually use.
Parameters
Section titled “Parameters”UrlLike
Returns
Section titled “Returns”Promise<string[]>