1. Mozilla
  2. Add-ons
  3. Browser extensions
  4. JavaScript APIs
  5. dns

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

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.

AltStyle によって変換されたページ (->オリジナル) /