dns.resolveCname(hostname, callback)


使用 DNS 协议解析 hostnameCNAME 记录。传递给 callback 函数的 addresses 参数将包含 hostname 可用的规范名称记录数组(例如 ['bar.example.com'])。

【Uses the DNS protocol to resolve CNAME records for the hostname. The addresses argument passed to the callback function will contain an array of canonical name records available for the hostname (e.g. ['bar.example.com']).】