Enables an extension to resolve domain names.
To use this API, an extension must request the "dns"
permission
在其
manifest.json
文件。
注意: DNS will fail with NS_ERROR_UNKNOWN_PROXY_HOST if proxying DNS over socks is enabled.
dns.resolve()
Resolves the given hostname to a DNS record.
BCD tables only load in the browser
最后修改: , 由 MDN 贡献者