dnsPromises.resolveTlsa(hostname)
hostname
<string>
使用 DNS 协议解析 hostname
的证书关联(TLSA
记录)。成功后,Promise
将解析为具有以下属性的对象数组:
¥Uses the DNS protocol to resolve certificate associations (TLSA
records) for
the hostname
. On success, the Promise
is resolved with an array of objects
with these properties:
-
certUsage
-
selector
-
match
-
data
{
certUsage: 3,
selector: 1,
match: 1,
data: [ArrayBuffer]
}