Contents
5 sections · 6 min read
Diagram showing email being routed through MX record to correct mail server
Domain Management

What Is an MX Record? How Email DNS Works and How to Check Yours

A
Domain 360 Team
·July 5, 2026·6 min read

Email delivery is entirely dependent on MX records. When someone sends you an email, their mail server does not know your email address maps to a specific server — it looks up your domain in DNS and follows the MX record to find where to deliver the message. If the MX record is missing, wrong, or pointing to a server that is not configured to receive mail, email fails.

Quick answer: Every domain that receives email has MX records. Without them, email delivery fails completely. Here is how MX records work, how to check yours, and how to fix the most common mail delivery problems they cause.

Here is everything you need to understand and manage MX records effectively.

How Do MX Records Work?

The process: someone sends email to [email protected]. Their mail server extracts your domain (yourdomain.com), queries DNS for MX records, and receives back one or more hostnames along with priority numbers.

The sending server attempts delivery to the lowest-priority-number server first. If that server accepts the connection and the email is delivered, the process is complete. If the first server rejects the connection or is unreachable, the sending server tries the next highest priority server.

This failover behaviour is why most professional mail setups have at least two MX records at different priority values — one server can fail without mail bouncing.

How Do You Read Your MX Records?

Run this in Terminal or Command Prompt: nslookup -type=mx yourdomain.com

A Google Workspace domain returns something like: yourdomain.com mail exchanger = 1 aspmx.l.google.com yourdomain.com mail exchanger = 5 alt1.aspmx.l.google.com yourdomain.com mail exchanger = 5 alt2.aspmx.l.google.com yourdomain.com mail exchanger = 10 alt3.aspmx.l.google.com yourdomain.com mail exchanger = 10 alt4.aspmx.l.google.com

The numbers (1, 5, 10) are priorities. Lower is higher priority. Google Mail sends all email to the priority 1 server first (aspmx.l.google.com) and uses the alt servers only as fallbacks.

A Microsoft 365 domain typically shows a single MX record pointing to yourdomain-com.mail.protection.outlook.com.

How Do You Set Up MX Records?

When you subscribe to an email service like Google Workspace or Microsoft 365, the provider gives you specific MX record values to enter in your DNS settings. You add these at wherever your DNS is managed — your registrar, Cloudflare, or whichever DNS host you use.

The key steps: delete any existing MX records for the domain first, add the new ones the provider specifies, save, and wait for propagation. DNS propagation for MX record changes typically takes 15 minutes to a few hours, though up to 48 hours is technically possible.

What Are Common MX Problems and Fixes?

No MX records. Email bounces with a permanent failure. Fix: add the correct MX records from your email provider.

Wrong server in MX records. Email is routed to the wrong server, which rejects it. Fix: verify the exact values from your email provider and update.

MX pointing to a CNAME. This is technically invalid per RFC 2181. Some sending servers handle it anyway, others reject it. Always point MX records to A records or direct hostnames, never to CNAMEs.

Leftover old MX records after migration. Split mail delivery — some email goes to the old server, some to the new one. Fix: remove all old MX records when migrating to a new provider.

Email working, then suddenly failing. Check whether the domain has expired. An expired domain loses all its DNS records, including MX records, and email fails immediately. A WHOIS lookup shows expiry status in seconds. The email impact of domain expiry is one of the most damaging and least expected consequences of a missed renewal.

How Do MX Records Relate to Email Authentication?

MX records handle routing. But delivered email also needs to pass authentication checks that receiving servers apply. SPF, DKIM, and DMARC are all implemented via TXT records and work alongside your MX configuration. Setting MX records correctly is necessary but not sufficient for email deliverability — authentication records matter too, covered in our SPF, DKIM, and DMARC guide.

Quick Answers

What is an MX record in DNS?
An MX (Mail Exchanger) record is a DNS entry that specifies which mail server accepts incoming email for a domain. When someone sends you an email, their mail server looks up the MX records for your domain to find out where to deliver the message. Without MX records, no email can be received at the domain.
How do I check my MX records?
In a terminal: nslookup -type=mx yourdomain.com or dig yourdomain.com mx. Online tools like MXToolbox also display MX records clearly. The result shows the mail server hostnames and their priority numbers.
What do MX record priority numbers mean?
Priority (or preference) numbers tell sending mail servers which server to try first. Lower numbers have higher priority. A domain with an MX at priority 10 and another at priority 20 will have email delivered to priority 10 first; if that server is unavailable, the sending server retries at priority 20. This creates automatic failover.
Can a domain have multiple MX records?
Yes, and it often should. Multiple MX records at different priorities provide redundancy — if the primary mail server is temporarily unavailable, email is queued and delivered to a backup server. Google Workspace, Microsoft 365, and most enterprise mail providers supply two or more MX values for this reason.
Why would changing MX records break email?
If new MX records point to servers that are not yet configured to receive mail for the domain, email will queue on sending servers and eventually bounce. The old records should remain in place until the new mail servers are fully configured, tested, and ready to receive. Only then should the MX change be made.

Never lose a domain again

Track every domain you own in one dashboard. Free for up to 15 domains.