Skip to main content

resolve6

function resolve6
Jump to headingresolve6(
hostname: string,
callback: (
err: ErrnoException | null,
addresses: string[],
) => void
,
): void

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 Jump to heading

Jump to headinghostname: string

Host name to resolve.

Jump to headingcallback: (
err: ErrnoException | null,
addresses: string[],
) => void

Return Type Jump to heading

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

Deno compatibility

The ttl option is not supported.

Parameters Jump to heading

Jump to headinghostname: string
Jump to headingcallback: (
err: ErrnoException | null,
addresses: RecordWithTtl[],
) => void

Return Type Jump to heading

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

Deno compatibility

The ttl option is not supported.

Parameters Jump to heading

Jump to headinghostname: string
Jump to headingcallback: (
err: ErrnoException | null,
addresses: string[] | RecordWithTtl[],
) => void

Return Type Jump to heading

void
Back to top