dnsResolveEx()

Microsoft IPv6 extension. Returns a semicolon-separated list of IPv4 and IPv6 addresses, or an empty string (false in Windows).

dnsResolveEx(host)  →  string

Used in under 1% of the real PAC files in the PAC file statistics.

Only available in engines that implement the Microsoft “Ex” extensions. Firefox does not, so a PAC that calls it there fails with a ReferenceError.

In Chrome and Edge, dnsResolve (IPv4 only) and dnsResolveEx (all addresses) for the same name are two different questions with two cache entries, so using both costs two lookups. Use one of them per name and keep the result in a variable.

Example

var ips = dnsResolveEx(host);

Engine notes

EngineBehaviourSource
chromiumSeparate cache entry from dnsResolve for the same name; it counts as a name of its own towards the limit of 20 per request. Returns "" when the name does not resolve or the limit is reached.code, verified 2026-10-14
services/proxy_resolver/proxy_resolver_v8_tracing.cc@155.0.8059.83; net/dns/host_cache.h@155.0.8059.83
winhttpA list separated by ";" with IPv6 addresses in brackets; "localhost" gave "[::1];127.0.0.1". Returns false when the name does not resolve. Text that looks like an address comes back unchanged.lab, verified 2026-10-11
Windows 11 25H2

Availability

Derived from each engine's vendored helper library plus its native bindings (see engines).
Functionchromium
<=51
chromium
>=52
firefox
all
pacparser
<=1.4.6
pacparser
>=1.5.1
winhttp
11-25H2
wininet
11-25H2
reference
all
dnsResolveExyesyesnoyesyesyesyesno

Related rules

Last updated: