net - net.resolveHost(host, [options])

概述

返回 Promise,解析指定主机名对应的 IP 地址。解析器会根据 IPv4/IPv6 设置选择 A 或 AAAA 记录(或两者兼取)。

基本信息

属性
模块 net
类型 Method
鸿蒙支持 支持