dnsResolveEx()
Microsoft IPv6 extension. Returns a semicolon-separated list of IPv4 and IPv6 addresses, or an empty string (false in Windows).
dnsResolveEx(host) → stringOnly 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
| Engine | Behaviour | Source |
|---|---|---|
| chromium | Separate 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 |
| winhttp | A 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 |
Availability
| Function | chromium | chromium | firefox | pacparser | pacparser | winhttp | wininet | reference |
|---|---|---|---|---|---|---|---|---|
dnsResolveEx | yes | yes | no | yes | yes | yes | yes | no |