HostnameResolver
HostnameResolver = (
hostname) =>Promise<readonlystring[]>
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.
Parameters
Section titled “Parameters”hostname
Section titled “hostname”string
Returns
Section titled “Returns”Promise<readonly string[]>