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.MXRecord

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

If Deno.resolveDns is called with "MX" record type specified, it will return an array of objects with this interface.

Properties

preference: number

A priority value, which is a relative value compared to the other preferences of MX records for the domain.

exchange: string

The server that mail should be delivered to.