The MX record (Mail Exchange record) specifies which mail servers are responsible for receiving email on behalf of a domain. When someone sends an email to [email protected], MX records tell the sending server where to deliver that message.
Check MX records for any domain using our free DNS lookup tool.
Look Up MX Records →An MX record tells the internet which mail servers handle email for your domain. Unlike A records which point directly to an IP address, MX records point to a mail server's hostname, and include a priority value to determine the order mail servers should be tried.
Without MX records, your domain cannot receive email. The sending mail server would have nowhere to deliver messages.
An MX record consists of these components:
| Component | Description | Example |
|---|---|---|
| Name | The domain receiving email | example.com |
| Type | Record type identifier | MX |
| TTL | Time to live (cache duration in seconds) | 3600 |
| Priority | Preference value (lower = higher priority) | 10 |
| Value | Mail server hostname (not IP address) | mail.example.com |
example.com. 3600 IN MX 10 mail.example.com.
This record tells mail servers to deliver email for example.com to mail.example.com with priority 10.
The priority value determines which server to try first. Lower numbers = higher priority. If the highest-priority server is unavailable, the sender tries the next one.
example.com. 3600 IN MX 10 mail1.example.com.
example.com. 3600 IN MX 20 mail2.example.com.
example.com. 3600 IN MX 30 mail3.example.com.
In this configuration:
mail1.example.com — Tried first (primary)mail2.example.com — Tried if primary fails (backup)mail3.example.com — Tried if both fail (tertiary)Common priority schemes include 10/20/30 or 1/5/10. The actual numbers don't matter — only their relative order.
Simple setup with one mail server:
example.com. 3600 IN MX 10 mail.example.com.
Redundant setup for high availability:
example.com. 3600 IN MX 10 mail.example.com.
example.com. 3600 IN MX 20 backup-mail.example.com.
Standard configuration for Google Workspace:
example.com. 3600 IN MX 1 ASPMX.L.GOOGLE.COM.
example.com. 3600 IN MX 5 ALT1.ASPMX.L.GOOGLE.COM.
example.com. 3600 IN MX 5 ALT2.ASPMX.L.GOOGLE.COM.
example.com. 3600 IN MX 10 ALT3.ASPMX.L.GOOGLE.COM.
example.com. 3600 IN MX 10 ALT4.ASPMX.L.GOOGLE.COM.
Configuration for Microsoft 365:
example.com. 3600 IN MX 0 example-com.mail.protection.outlook.com.
Same priority distributes load across servers:
example.com. 3600 IN MX 10 mail1.example.com.
example.com. 3600 IN MX 10 mail2.example.com.
MX records work alongside other DNS records for email:
While MX records handle incoming email routing, SPF/DKIM/DMARC handle outgoing email authentication.
If a domain should not receive email, you can create a "null MX" record (RFC 7505):
example.com. 3600 IN MX 0 .
This explicitly tells sending servers that the domain doesn't accept email, which is faster and cleaner than having no MX record at all.
Common issues and solutions:
DNS Explorer — Track MX records and all email-related DNS records across your domain portfolio. Built for IT teams managing email infrastructure.
Start free DNS Explorer trial14-day full-feature trial
Use our DNS Record Finder to look up MX records for any domain.
Look Up MX Records →