Skip to main content
resolve6 - node__dns--promises.d.ts - Node documentation
function resolve6

Usage in Deno

```typescript import { resolve6 } from "node:node__dns--promises.d.ts"; ```
resolve6(hostname: string): Promise<string[]>
Uses the DNS protocol to resolve IPv6 addresses (`AAAA` records) for the `hostname`. On success, the `Promise` is resolved with an array of IPv6 addresses.

Parameters

hostname: string
Host name to resolve.

Return Type

Promise<string[]>
resolve6(
hostname: string,
): Promise<RecordWithTtl[]>

Parameters

hostname: string

Return Type

Promise<RecordWithTtl[]>
resolve6(
hostname: string,
options: ResolveOptions,
): Promise<string[] | RecordWithTtl[]>

Parameters

hostname: string
options: ResolveOptions

Return Type

Promise<string[] | RecordWithTtl[]>