Module

std/node/dns.ts

Deno standard library
Go to Latest
function lookup
import { lookup } from "https://deno.land/std@0.145.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>

Parameters

hostname: string
options: unknown
optional
callback: unknown

Returns

GetAddrInfoReqWrap | Record<string, never>