Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/node/dns/promises.ts>lookup

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function lookup
Re-export
import { lookup } from "https://deno.land/std@0.142.0/node/dns/promises.ts";

Parameters

hostname: string
family: number

Returns

Promise<void | LookupAddress | LookupAddress[]>

Parameters

hostname: string
options: LookupOneOptions

Returns

Promise<void | LookupAddress | LookupAddress[]>

Parameters

hostname: string
options: LookupAllOptions

Returns

Promise<void | LookupAddress | LookupAddress[]>

Parameters

hostname: string
options: LookupOptions

Returns

Promise<void | LookupAddress | LookupAddress[]>

Parameters

hostname: string
options: unknown

Returns

Promise<void | LookupAddress | LookupAddress[]>