net.resolve

net.resolve

net.resolve

Function

parses the host name and returns the deduplicated IP address array.

Syntax

Parameters

ParametersTypeRequiredDefaultDescription
hostStringYesNoneThe host name to resolve.

Return Value

TypeDescription
ArrayReturns the IP string array.

Examples

Notes

  • A Chinese error is thrown when parsing fails.