Module

std/node/dns.ts>resolve6

Deno standard library
Go to Latest
function resolve6
import { resolve6 } from "https://deno.land/std@0.145.0/node/dns.ts";

Uses the DNS protocol to resolve a 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

Parameters

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

Parameters

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

Parameters

hostname: string
options: unknown
optional
callback: unknown