Module

std/node/dns.ts>resolve6

Deno standard library
Go to Latest
function resolve6
import { resolve6 } from "https://dotland.deno.dev/std@0.177.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