import { resolve } from "https://deno.land/std@0.145.0/node/dns.ts";
Uses the DNS protocol to resolve a host name (e.g. 'nodejs.org'
) into an array
of the resource records. The callback
function has arguments(err, records)
.]
When successful, records
will be an array of resource
records. The type and structure of individual results varies based on rrtype
.
On error, err
is an Error
object, where err.code
is one of the DNS error codes.
Parameters
callback: (err: ErrnoException | null, addresses: string[]) => void
Parameters
callback: (err: ErrnoException | null, addresses: NaptrRecord[]) => void
Parameters
callback: (err: ErrnoException | null, addresses: ) => void