W3cubDocs

/Web Extensions

dns

Enables an extension to resolve domain names.

To use this API, an extension must request the "dns" permission in its manifest.json file.

Note: DNS will fail with NS_ERROR_UNKNOWN_PROXY_HOST if proxying DNS over socks is enabled.

Functions

dns.resolve()
Resolves the given hostname to a DNS record.

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
resolve
No
No
60
?
No
No
?
?
60
?
?
?

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/dns