The node:dns/promises surface this resolver needs, injectable so every branch is unit-testable without real DNS or network permission.
node:dns/promises
Note resolveSrv yields records whose target field is named name — Deno spells the same field target, which is why neither shape escapes this package.
resolveSrv
name
target
0.2.0
Resolves IPv4 addresses.
Resolves IPv6 addresses.
Resolves SRV records.
The
node:dns/promisessurface this resolver needs, injectable so every branch is unit-testable without real DNS or network permission.Note
resolveSrvyields records whose target field is namedname— Deno spells the same fieldtarget, which is why neither shape escapes this package.Since
0.2.0