Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/cli/dts/lib.deno.ns.d.ts>Deno.ResolveDnsOptions

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface Deno.ResolveDnsOptions
import { type Deno } from "https://deno.land/x/deno@v1.28.1/cli/dts/lib.deno.ns.d.ts";
const { ResolveDnsOptions } = Deno;

Options which can be set when using Deno.resolveDns.

Properties

optional
nameServer: { ipAddr: string; port?: number; }

The name server to be used for lookups.

If not specified, defaults to the system configuration. For example /etc/resolv.conf on Unix-like systems.