MX Record: How Email Finds Your Domain

An MX record tells other mail servers where to deliver email addressed to your domain. Each one holds a priority number and a server name, and senders try the lowest number first. Get it wrong and messages to you@yourdomain bounce or vanish, even while your website keeps working normally.

The two parts of an MX record
FieldWhat it holdsExample
Priority (preference)A whole number from 0 to 65535. Lower wins.10
Mail server (exchange)A host name, never an IP address or a CNAME aliasmx1.example.com.
Name (host)The domain receiving the mail, usually @ for the root@

Updated

If you own a small business site, the MX record is the one DNS entry that decides whether customer emails reach you. DNS (the internet's address book for domains) can point your website at one company and your inbox at another, and MX is the part for the inbox. Paste the records your DNS host shows into the checker below to see them sorted the way a sending server would try them, with mistakes flagged. For every other record type, see our DNS record types guide.

MX record checker

Paste MX records, one per line. Nothing leaves your browser: this page only reads what you paste, it does not look up your domain.

MX records

example.com. 3600 IN MX 10 mx1.example.com.
example.com. 3600 IN MX 10 mx2.example.com.
20 backup.example.net
5 192.0.2.10

MX values published by common mail hosts

Always copy the exact value from your provider's admin screen. These are the forms each provider documents as of October 2026.

Documented MX values
ProviderMail serverPriority
Google Workspace (current)smtp.google.com1
Google Workspace (before 2023)Values starting with aspmx, still supportedAs set up
Microsoft 365<your token>.mail.protection.outlook.comLower than any other MX
Domain that receives no mail (null MX). (a single dot)0

MX records in zone file form

A main server and a backup

The server with 10 gets mail first. The one with 20 is only tried when the first cannot be reached.

example.com.  3600  IN  MX  10  mail.example.com.
example.com.  3600  IN  MX  20  backup.example.com.

Null MX for a domain that receives no mail

Priority 0 and a single dot tell senders this domain accepts no email. It must be the only MX record.

parked-example.com.  3600  IN  MX  0  .

Look up MX records from a terminal

On macOS or Linux, dig prints the records exactly as resolvers see them.

dig +short MX example.com

Website and email are separate routes

Your A record or CNAME sends browsers to your website host. Your MX records send email somewhere else entirely, often a mailbox provider like Google Workspace or Microsoft 365. Moving your website to a new builder does not move your email, and it should not touch your MX records.

The most common way small businesses lose email is switching DNS to a new host and forgetting to copy the MX records across. Before you change nameservers, list every MX and TXT record so the new DNS host carries them over.

Backup servers and why one record is often enough

Several records with different numbers create a fallback chain. Large mail providers already run many machines behind one name, so their current setup instructions use a single MX.

Microsoft's DNS reference goes further and warns that several MX records can cause delivery problems, recommending one record that sends mail to one system.

How it works

  1. Copy the MX rows from your DNS dashboard or from a lookup tool. Either the short form (10 mx.example.com) or a full zone line works.
  2. Paste them into the box, one record per line.
  3. The checker sorts them by priority, groups servers that share a number and marks lines it cannot read.
  4. Fix anything flagged in your DNS host, then look the domain up again once the old records expire from caches.

Tips

Frequently asked questions

What does MX priority mean?

Priority, called preference in the standards, ranks your mail servers. A sender tries the lowest number first and moves to higher numbers only if that server cannot be reached. Two servers with the same number share the load, because the sender must pick between them at random.

What happens if my domain has no MX record at all?

Senders fall back to the domain's own address records. The mail standard treats the domain as if it had one implicit MX with priority 0 pointing at itself, so mail goes to whatever server hosts your website, which usually does not accept it.

Can an MX record point to an IP address or a CNAME?

No. The exchange field must be a host name, and the DNS clarifications standard says that name must not be an alias. Point the MX at a name that has its own A or AAAA record instead.

What MX record does Google Workspace use?

As of October 2026, Google's help page lists a single record, smtp.google.com with priority 1. Accounts set up before 2023 may still have the older values starting with aspmx, and Google says those keep working.

What MX record does Microsoft 365 use?

Microsoft documents a target of the form your-token.mail.protection.outlook.com, where the token is specific to your domain and shown in the admin center under Domains. It asks for a priority lower than any other MX record you keep.

How long does an MX change take?

Resolvers keep the old answer until its TTL runs out, so the wait depends on the TTL that was set on the previous record. Some senders will still use the old server during that window, which is why both mailboxes should stay open for a day or two.

Related: DNS record types explained, SPF, DKIM and DMARC, DNS lookup, DNS propagation checker, Get a free business email.

Start for free or see all free tools. We.Inc is free to start, with no card needed. AI building is on paid plans from $20 a month.

More in Guides

We.Inc is an AI-powered website builder you can resell under your own brand. Launch a branded client dashboard, bill on Stripe Connect, and deliver AI-generated websites in minutes. White-label plans start at $99 a month for 25 client sites, with a 7-day free trial and no per-site fees.

Product

Who It's For

Features

Resources

Company

View Sitemap