Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/node/dns.ts>resolve6

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function resolve6
import { resolve6 } from "https://deno.land/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