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

Usage in Deno

```typescript import { resolve6 } from "node:node__dns.d.ts"; ```
resolve6(
hostname: string,
callback: (
err: ErrnoException | null,
addresses: string[],
) => void
,
): void
> [!WARNING] Deno compatibility > The `ttl` option is not supported. Uses the DNS protocol to resolve IPv6 addresses (`AAAA` records) for the `hostname`. The `addresses` argument passed to the `callback` function will contain an array of IPv6 addresses.

Parameters

hostname: string
Host name to resolve.
callback: (
err: ErrnoException | null,
addresses: string[],
) => void

Return Type

void
resolve6(
hostname: string,
callback: (
err: ErrnoException | null,
addresses: RecordWithTtl[],
) => void
,
): void
> [!WARNING] Deno compatibility > The `ttl` option is not supported.

Parameters

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

Return Type

void
resolve6(
hostname: string,
options: ResolveOptions,
callback: (
err: ErrnoException | null,
addresses: string[] | RecordWithTtl[],
) => void
,
): void
> [!WARNING] Deno compatibility > The `ttl` option is not supported.

Parameters

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

Return Type

void