MX Lookup

Query Mail Exchange (MX) DNS records for any domain — see mail servers and their priority

Try:

Frequently Asked Questions

An MX (Mail Exchange) record is a DNS record that specifies which mail servers are responsible for receiving email for a domain. When someone sends an email to [email protected], the sending mail server performs an MX lookup for example.com to find out where to deliver the message.
Priority (also called preference) is a number that determines which mail server should be tried first. A lower number means higher priority. For example, a server with priority 10 is tried before one with priority 20. If the primary server is unreachable, email is retried on the next-priority server. This provides redundancy.
If a domain has no MX records, it cannot receive email. This is common for domains used only for websites, API services, or subdomains. You should always set explicit MX records if you need to receive email.
The MX hostname usually reveals the provider: google.com in the hostname = Google Workspace, outlook.com or protection.outlook.com = Microsoft 365, mimecast.com = Mimecast, pphosted.com = Proofpoint. Self-hosted mail servers often use the domain itself as the MX record.
Multiple MX records provide redundancy and failover. If the primary mail server is down, sending servers automatically try the secondary MX records. Major providers like Google Workspace and Microsoft 365 configure 5+ MX records across different IP ranges and data centers.
An MX record explicitly designates a hostname as a mail server for the domain. An A record simply maps a domain to an IP with no special email meaning. Always configure explicit MX records for any domain that needs to receive email.
Google Workspace domains use five MX records: aspmx.l.google.com (priority 1), alt1/alt2.aspmx.l.google.com (priority 5), and alt3/alt4.aspmx.l.google.com (priority 10). If you're setting up Google Workspace for your domain, your MX records should point to these same hostnames.
MX records control where inbound email is delivered. SPF controls outbound email authentication — it specifies which servers are authorised to send email on behalf of your domain. 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.

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.

MX Record Fields

FieldDescription
PriorityPreference value — lower number = higher priority server
Mail ServerFully qualified domain name (FQDN) of the mail server
IP AddressResolved IP address of the mail server hostname
TTLTime to live — how long the record is cached (seconds)

Standards & References

Related Articles

In-depth guides and technical articles.

View all →
What Your MX Records Reveal About Your Email Architecture — Provider Patterns, Redundancy Reality, and SMTP Queuing
MX records reveal your email provider, but also your security gateway architecture, redundancy approach, and subdomain email routing — more information than most administrators intend to expose. Here's how to identify Google Workspace vs Microsoft 365 vs security gateway patterns from MX hostnames, why five MX records at one provider don't protect against a provider outage, and how SMTP queuing means short MX outages don't cause lost email.
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 [email protected] 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.