dns.resolveCname(hostname, callback)
hostname
<string>callback
<Function>err
<Error>addresses
<string[]>
使用域名系统协议为 hostname
解析 CNAME
记录。
传给 callback
函数的 addresses
参数将包含可用于 hostname
(例如 ['bar.example.com']
)的规范名称记录的数组。
hostname
<string>callback
<Function>err
<Error>addresses
<string[]>
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']
).