Fresolve6
Bun

function

dns.promises.resolve6

function 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.

@param hostname

Host name to resolve.

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

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.

@param hostname

Host name to resolve.

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

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.

@param hostname

Host name to resolve.