dns

Enables an extension to resolve domain names.

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

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

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxOperaSafariFirefox for Android
resolveChrome No support NoEdge No support NoFirefox Full support 60Opera No support NoSafari No support NoFirefox Android Full support 60

Legend

Full support  
Full support
No support  
No support