dnsPromises.resolve4(hostname[, options])
hostname<string> 要解析的主机名。options<Object>ttl<boolean> 获取每条记录的生存时间(TTL)值。当设置为true时,Promise将解析为一个包含{ address: '1.2.3.4', ttl: 60 }对象的数组,而不是字符串数组,TTL 以秒为单位表示。
使用 DNS 协议解析 hostname 的 IPv4 地址(A 记录)。成功时,Promise 会被解析为一个 IPv4 地址数组(例如 ['74.125.79.104', '74.125.79.105', '74.125.79.106'])。
【Uses the DNS protocol to resolve IPv4 addresses (A records) for the
hostname. On success, the Promise is resolved with an array of IPv4
addresses (e.g. ['74.125.79.104', '74.125.79.105', '74.125.79.106']).】