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

std/node/dns/promises.ts

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
import * as mod from "https://deno.land/std@0.148.0/node/dns/promises.ts";

Functions

Sets the IP address and port of servers to be used when performing DNS resolution. The servers argument is an array of RFC 5952 formatted addresses. If the port is the IANA default DNS port (53) it can be omitted.