Module

std/node/dns.ts>lookup

Deno standard library
Go to Latest
function lookup
import { lookup } from "https://dotland.deno.dev/std@0.177.0/node/dns.ts";

Parameters

hostname: string
family: number
callback: (
err: ErrnoException | null,
address: string,
family: number,
) => void

Returns

GetAddrInfoReqWrap | Record<string, never>

Parameters

hostname: string
callback: (
err: ErrnoException | null,
address: string,
family: number,
) => void

Returns

GetAddrInfoReqWrap | Record<string, never>

Parameters

hostname: string
callback: (err: ErrnoException | null, addresses: LookupAddress[]) => void

Returns

GetAddrInfoReqWrap | Record<string, never>

Parameters

hostname: string
options: LookupOptions
callback: (
err: ErrnoException | null,
address: string | LookupAddress[],
family: number,
) => void

Returns

GetAddrInfoReqWrap | Record<string, never>

Parameters

hostname: string
callback: (
err: ErrnoException | null,
address: string,
family: number,
) => void

Returns

GetAddrInfoReqWrap | Record<string, never>