function resolve6
Usage in Deno
import { resolve6 } from "node:dns";
resolve6(hostname: string,callback: (err: ErrnoException | null,addresses: string[],) => void,): void
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.
void
resolve6(hostname: string,options: ResolveWithTtlOptions,callback: (err: ErrnoException | null,addresses: RecordWithTtl[],) => void,): void
options: ResolveWithTtlOptions
callback: (err: ErrnoException | null,addresses: RecordWithTtl[],) => void
void
resolve6(hostname: string,options: ResolveOptions,callback: (err: ErrnoException | null,addresses: string[] | RecordWithTtl[],) => void,): void
options: ResolveOptions
callback: (err: ErrnoException | null,addresses: string[] | RecordWithTtl[],) => void
void