dnsPromises.resolveCaa(hostname)


使用 DNS 协议解析 hostnameCAA 记录。成功时,Promise 会解析为包含可用于 hostname 的认证机构授权记录的对象数组(例如 [{critical: 0, iodef: 'mailto:pki@example.com'},{critical: 128, issue: 'pki.example.com'}])。

【Uses the DNS protocol to resolve CAA records for the hostname. On success, the Promise is resolved with an array of objects containing available certification authority authorization records available for the hostname (e.g. [{critical: 0, iodef: 'mailto:pki@example.com'},{critical: 128, issue: 'pki.example.com'}]).】