An MX lookup queries the Domain Name System to retrieve the Mail Exchange (MX) records for a domain — the DNS records that tell the internet which mail servers accept email on that domain's behalf. If you are troubleshooting email delivery failures, setting up a new mail provider, or verifying that a domain migration completed successfully, checking MX records is always the first diagnostic step.
Every functioning email domain must have at least one MX record. The record contains two pieces of information: the hostname of the mail server and a priority number. When another mail server wants to deliver email to your domain, it performs an MX lookup, retrieves the list of mail servers, and connects to the one with the lowest priority number first. If that server is unavailable, it tries the next one in the list. This is how redundant email delivery works.
Whether you are configuring Google Workspace, Microsoft 365, Zoho Mail, or a self-hosted mail server, the MX records must be correctly published in your DNS zone before email will flow. Our MX lookup tool queries Cloudflare's global DNS resolver in real time, so you always see the live, propagated MX configuration rather than a cached snapshot.
Beyond delivery troubleshooting, MX records reveal which email provider a domain uses, whether backup mail servers are configured, and whether MX records exist at all — a domain without MX records cannot receive email.
How to Use the MX Lookup Tool
- 1
Enter the domain name
Type the domain you want to query — for example, gmail.com or yourdomain.com. Enter the root domain, not an email address. The tool queries MX records at the domain level.
- 2
Click Lookup
The tool sends a DNS query for MX records and displays results within seconds. You will see each mail server hostname and its priority value.
- 3
Read the results
Results are sorted by priority. The mail server with the lowest priority number is the primary server. Multiple entries indicate a redundant mail setup with failover capability.
- 4
Verify against your mail provider
Compare the returned MX hostnames against what your email provider requires. If they do not match, your DNS is not yet configured correctly and email will not flow to your provider.
Understanding MX Record Results
| Field | Description |
|---|---|
| Priority | Preference value (0–65535). Mail is delivered to the server with the lowest number first; higher numbers are used as fallback. |
| Mail Server | The hostname of the mail server that accepts incoming email for this domain. |
| TTL | Time to Live in seconds — how long other mail servers cache this MX record before re-querying. |
Common MX Lookup Use Cases
Diagnose email delivery failures
When email sent to a domain bounces or disappears, check MX records immediately. Missing records mean the domain cannot receive email at all. Wrong hostnames mean delivery is going to the wrong server. Mismatched priorities may be routing email to a backup server rather than the primary.
Verify mail provider setup after migration
After moving from one email provider to another — say from on-premise Exchange to Microsoft 365 — check the MX records to confirm the new provider's mail servers are correctly published and the old entries have been removed.
Confirm redundant mail server configuration
For high-availability email setups, multiple MX records at different priority levels provide automatic failover. Use MX lookup to verify that backup mail servers are correctly registered and will accept mail if the primary becomes unavailable.
Identify what email provider a domain uses
MX record hostnames reveal the email provider at a glance. Google Workspace uses aspmx.l.google.com; Microsoft 365 uses domain-com.mail.protection.outlook.com; self-hosted setups use the organisation's own server hostname.
MX Lookup — Frequently Asked Questions
What is an MX record?
How do I check the MX records of a domain?
What does MX record priority mean?
Why do domains have multiple MX records?
How do I fix "MX record not found"?
What MX records does Google Workspace use?
What MX records does Microsoft 365 use?
How long does it take for MX records to propagate?
What happens if MX records are missing?
How do I verify that email is configured correctly?
Related Tools
SPF Lookup
Verify the SPF record that authorises your mail servers to send on behalf of this domain.
DKIM Lookup
Check the DKIM public key record that authenticates outgoing email signatures.
DMARC Lookup
Review the DMARC policy that governs how receiving servers handle unauthenticated email.
DNS Lookup
Query all DNS records for the domain to see the complete configuration alongside MX.