Skip to main content

resolve6

function resolve6
Jump to headingresolve6(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 Jump to heading

Jump to headinghostname: string

Host name to resolve.

Return Type Jump to heading

Promise<string[]>
Jump to headingresolve6(
hostname: string,
): Promise<RecordWithTtl[]>
Jump to headingresolve6(
hostname: string,
options: ResolveOptions,
): Promise<string[] | RecordWithTtl[]>

Parameters Jump to heading

Return Type Jump to heading

Promise<string[] | RecordWithTtl[]>
Back to top