Opens in a new tab

MX record: where a domain’s email is delivered

MX records name the servers that receive email for a domain, each with a preference number. Senders try the lowest number first and move up the list only when a server does not answer.

Type number15
HoldsA preference and a host name
May point toA name with A/AAAA records — not an IP, not a CNAME
Defined inRFC 5321 §5.1

Look up the MX records of any name

One question to DNS, answered as it is. You can change the record type too.

What it does

The preference numbers are an order, not a weight: 10 and 20 behave exactly like 1 and 2, and equal numbers share the load. A domain with no MX record at all still receives mail at the address of its A record — the “implicit MX” — which is why a domain that should receive nothing publishes a null MX.

A null MX (preference 0, host “.”, RFC 7505) tells senders the domain never accepts mail, so they give up at once instead of retrying for days.

How it is written

FieldMeaning
PreferenceLower is tried first
ExchangeThe mail server’s host name

Examples

example.com.  3600  IN  MX  1  smtp.google.com.

Google Workspace’s single MX record.

example.com.  3600  IN  MX  10  mx1.example.net.
example.com.  3600  IN  MX  20  mx2.example.net.

A primary and a backup.

example.com.  3600  IN  MX  0  .

A null MX: this domain receives no mail.

Common mistakes

  • An MX record whose value is an IP address, or a name that is a CNAME.
  • Leaving the old provider’s MX records in place after moving, so some mail still goes there.
  • A backup MX that accepts mail but cannot deliver it — spammers aim at backups.

What we recommend

Publish exactly the records your mail provider gives you, remove the old provider’s when you move, and give send-only domains a null MX.

MX lookup with the checks in words →

Questions

Do I need more than one MX record?

Not strictly — big providers answer from many servers behind one name. A second record is insurance only if that server can really deliver the mail.

Sources

Checked on 25 September 2026 against these official sources:

Know when a record changes

Add your domain and we scan its DNS on a schedule, keep every version, and email you when a record changes — along with certificate and domain expiry. Free for your first domain.

Create a free account