velt/net/dns
API referenceHost name resolution through the system resolver. For a walkthrough, read the guide.
Exports
Re-exported from velt/net/dns/lookup
async function lookup(host: string): Promise<string[]>Every IP address of host (IPv4 and IPv6, in resolver order, without duplicates). Throws
IoError with code "ENOENT" when the name does not resolve.
Re-exported from velt/net/dns/lookup
async function lookupOne(host: string): Promise<string>The first address of host (the one a connect would try first).