Skip to the content.

Interface: MXRecord

Defined in: src/types.ts:309

MX record - Specifies mail exchange servers for a domain.

Example

const record: MXRecord = {
  type: "MX",
  priority: 10,
  exchange: "mail.example.com",
  ttl: 3600,
};

Extends

Properties

ttl?

optional ttl?: number;

Defined in: src/types.ts:76

Time to live in seconds (optional)

Inherited from

BaseDNSRecord.ttl


exchange

exchange: string;

Defined in: src/types.ts:311

Mail server hostname


priority

priority: number;

Defined in: src/types.ts:313

Priority value (0-65535, lower values have higher priority)


type

type: "MX";

Defined in: src/types.ts:314

The type of DNS record

Overrides

BaseDNSRecord.type