dns.resolveCname(hostname, callback)
- “主机名” <string>
- 'callback' <Function>
- 'err' <Error>
- 'addresses' <string[]>
使用 DNS 协议解析 hostname 的 CNAME 记录。传递给 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']).】