Skip to content

HostnameResolver

HostnameResolver = (hostname) => Promise<readonly string[]>

Defined in: web/address-policy.ts:36

Resolves a hostname to every address it might connect to. Matches node:dns/promises’s lookup(host, { all: true }) so the real implementation is the default and tests can substitute one. Called for any domain name that reaches the address check, regardless of scheme — pinning the first answer is http:-only, but the check itself is not.

string

Promise<readonly string[]>