dns.resolveCname(hostname, callback)


使用DNS协议解析CNAME记录主机名。adresses参数是传递给callback函数规范内有效的主机名数组(例如:['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']).