dnsPromises.resolveCname(hostname)


使用 DNS 协议解析 hostnameCNAME 记录。成功时,Promise 会被解析为包含 hostname 可用的规范名称记录的数组(例如 ['bar.example.com'])。

【Uses the DNS protocol to resolve CNAME records for the hostname. On success, the Promise is resolved with an array of canonical name records available for the hostname (e.g. ['bar.example.com']).】