isResolvable()

True if the host name resolves in DNS. Performs a blocking DNS lookup.

isResolvable(host)  →  boolean

Every call is a DNS query on the proxy-resolution path. Using it as “am I on the internal network?” check makes every request wait for DNS and fails badly when DNS is slow or split.

Example

// prefer explicit domain lists; if you must, guard it:
if (isPlainHostName(host) && isResolvable(host)) {
  return "DIRECT";
}

Engine notes

EngineBehaviourSource
chromiumResolves IPv4 only.code, verified 2026-10-04
services/proxy_resolver/proxy_resolver_v8.cc (binding table)

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.0
pacparser
>=1.5.1
reference
all
isResolvableyesyesyesyesyesyesyes

Related rules