MX Lookup
Query Mail Exchange (MX) DNS records for any domain — see mail servers and their priority
Frequently Asked Questions
user@example.com, the sending mail server performs an MX lookup for example.com to find out where to deliver the message.google.com in the hostname means Google Workspace (Gmail), outlook.com or protection.outlook.com means Microsoft 365 / Exchange Online, mimecast.com means Mimecast, pphosted.com means Proofpoint. Self-hosted mail servers often use the domain itself as the MX record.aspmx.l.google.com and higher numbers (5, 10) for backups.
*.l.google.com. The primary record is aspmx.l.google.com (priority 1), followed by alt1.aspmx.l.google.com and alt2.aspmx.l.google.com (priority 5), then alt3.aspmx.l.google.com and alt4.aspmx.l.google.com (priority 10). If you're setting up Google Workspace for your own domain, your MX records should point to these same hostnames.
v=spf1 include:_spf.google.com ~all). The mx mechanism in SPF (v=spf1 mx ~all) tells receivers that the servers listed in your MX records are also authorised to send mail — useful when your mail servers handle both sending and receiving.
About This MX Lookup
This free MX Lookup tool queries DNS Mail Exchange records in real time for any domain. It returns all mail exchange servers sorted by priority (lowest number = highest priority) and resolves each server's hostname to its IP address for quick verification of your email routing configuration.
When to use this tool
- Verify that email is correctly configured for a domain
- Identify which email provider or hosting service a domain uses
- Troubleshoot email delivery issues by checking MX priority order
- Check MX record propagation after a DNS change or migration
MX Record Fields
| Field | Description |
|---|---|
| Priority | Preference value — lower number = higher priority server |
| Mail Server | Fully qualified domain name (FQDN) of the mail server |
| IP Address | Resolved IP address of the mail server hostname |
| TTL | Time to live — how long the record is cached (seconds) |
Standards & References
Related Internet Tools
Related Articles
View all articles
MX Records Are Public Reconnaissance Data — Here's What Attackers Learn and How to Defend Against It
MX records are public reconnaissance data — attackers use them to identify email providers, target backup MX servers that have weaker filtering than primary MX, and exploit dangling MX records pointing to decommissioned servers. Here's the backup MX vulnerability, how null MX (RFC 7505) protects parked domains, the TTL preparation step for email migrations, and why using "mx" in SPF creates maintenance traps.
MX Records Tell You the Domain Works — Catch-All Configurations Are Why That's Not Enough
An MX lookup can show valid, correctly-configured mail servers — and "does jane@example.com actually exist" still can't be answered, because MX records describe where mail for the domain goes, not which specific addresses are valid mailboxes. Here's how catch-all configurations make every local part "work" regardless of whether it's real, why this makes SMTP-based email verification inconclusive for catch-all domains, and why list-cleaning reports show an "unknown/risky" category for exactly this reason.
MX Record Priority and Failover: How Mail Servers Actually Choose Between Multiple MX Records
Multiple MX records don't load-balance by default — lower priority numbers are tried first, in strict order, with fallback only on connection failure (not on "recipient doesn't exist" responses). Here's how MX priority actually governs mail server selection, when equal priorities create real load distribution, the null MX convention for email-free domains, and practical MX configuration patterns.
Email Provider Migration: The Correct MX Record Sequence to Avoid Losing Email
Switching email providers is one of the most common causes of lost email. Here's the correct migration sequence (never update MX first), how Google Workspace, Microsoft 365, and Zoho Mail configure their MX records, and how to verify after migration.
MX Records and Email Delivery Failures: How to Diagnose and Fix Them
When email stops working, MX records are almost always part of the diagnosis. Here's how MX records control email delivery, how to debug bounces and delivery failures, common provider configurations, and the null MX for non-email domains.