dns.resolveTlsa(hostname, callback)
hostname<string>callback<Function>err<Error>records对象数组
使用 DNS 协议解析证书关联(TLSA 记录)以获取 hostname。传递给 callback 函数的 records 参数是一个包含以下属性的对象数组:
【Uses the DNS protocol to resolve certificate associations (TLSA records) for
the hostname. The records argument passed to the callback function is an
array of objects with these properties:】
certUsageselectormatchdata
{
certUsage: 3,
selector: 1,
match: 1,
data: [ArrayBuffer]
}