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
Opera
Safari
Firefox for Android
Safari on iOS
dns
Chrome – Preview support
Chrome Canary
footnote
footnote The required dns permission is only supported in Chrome Dev.
footnote Preview browser support
Edge – No support
Edge
footnote No support
Firefox – Full support
Firefox 60 (Release date: 2018-05-09)
footnote Full support
Opera – No support
Opera
footnote No support
Safari – No support
Safari
footnote No support
Firefox for Android – Full support
Firefox for Android 60 (Release date: 2018-05-09)
footnote Full support
Safari on iOS – No support
Safari on iOS
footnote No support
resolve
Chrome – Preview support
Chrome Canary
footnote
footnote The required dns permission is only supported in Chrome Dev.
footnote Preview browser support
Edge – No support
Edge
footnote No support
Firefox – Full support
Firefox 60 (Release date: 2018-05-09)
footnote Full support
Opera – No support
Opera
footnote No support
Safari – No support
Safari
footnote No support
Firefox for Android – Full support
Firefox for Android 60 (Release date: 2018-05-09)
footnote Full support
Safari on iOS – No support
Safari on iOS
footnote No support

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
In development. Supported in a pre-release version.
In development. Supported in a pre-release version.
No support
No support
See implementation notes.