dnsPromises.resolve6(hostname[, options])


  • hostname <string> 要解析的主机名。
  • options <Object>
    • ttl <boolean> 获取每条记录的生存时间(TTL)值。当设置为 true 时,Promise 会解析为一个包含 { address: '0:1:2:3:4:5:6:7', ttl: 60 } 对象的数组,而不是字符串数组,TTL 值以秒为单位表示。

使用 DNS 协议解析 hostname 的 IPv6 地址(AAAA 记录)。成功时,Promise 会被解析为一个包含 IPv6 地址的数组。

🌐 Uses the DNS protocol to resolve IPv6 addresses (AAAA records) for the hostname. On success, the Promise is resolved with an array of IPv6 addresses.