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.
| Field | What it holds | Example |
|---|---|---|
| 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 alias | mx1.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.10MX 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.
| Provider | Mail server | Priority |
|---|---|---|
| Google Workspace (current) | smtp.google.com | 1 |
| Google Workspace (before 2023) | Values starting with aspmx, still supported | As set up |
| Microsoft 365 | <your token>.mail.protection.outlook.com | Lower 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
- 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.
- Paste them into the box, one record per line.
- The checker sorts them by priority, groups servers that share a number and marks lines it cannot read.
- Fix anything flagged in your DNS host, then look the domain up again once the old records expire from caches.
Tips
- Change MX records only when you are moving mailboxes. Every message sent after the switch lands at the new provider.
- Write down the old records before editing, so you can put them back if mail stops arriving.
- Lower the TTL (how long caches keep a record) a day before a planned move, so the change spreads faster.
- A domain that never receives mail can publish a null MX so senders fail fast instead of retrying for days.
- Remove MX records for a provider you have left. A stale entry with a low number can swallow mail.
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.
Build your site free or see all free tools. On We.Inc you can build your site free, with no card and no trial needed to start. AI building is on paid plans from $19 a month.
More in Guides
- NestJS vs Next.js: Different Jobs, Often the Same Project
- Next.js API Routes: Route Handler Examples
- Next.js App Router Cheat Sheet
- Next.js Authentication Options Compared
- Next.js Environment Variables Explained
- Next.js Image Component: Sizes, Preload and Remote Images
- Next.js Middleware Examples, Updated for proxy.ts
- Next.js SEO Checklist (App Router)
Product
Who It's For
- For Agencies
- For Freelancers
- For Hosting Providers
- For SaaS Platforms
- For Startups
- For Financial Services
- For Healthcare
Features
Resources
- Blog
- Help Center
- Free Business Tools
- Free UI Components
- Website Templates
- Template Collections
- Website Examples
- Guides
- Comparisons
- Alternatives
- Best Lists
- Reviews
- Pricing Guides
- Use Cases
- Glossary & Guides
- Integrations
- Developers
- Benchmark
- Windows App