MX Record Lookup
See the MX records for any domain, their priority, the IP each one resolves to, and which provider runs them: Google Workspace, Microsoft 365, Zoho, Proton and others.
No account needed. Reads public DNS only, live. Nothing you check is saved.
How to use this tool
- Enter a domain, like
example.com. Do not include the @ or a username. - Read the table. Lower priority number means it is tried first.
- A row that does not resolve to an IP is a dead record. Remove it, or mail can bounce or slow down.
What the results tell you
MX records say where mail for a domain should go. If a domain has none, senders fall back to the A record, which usually means mail gets lost.
Moving email to a new provider? The old MX records must go once the new ones work. Mixing Google and Microsoft MX records splits your mail between two inboxes.
Mail still goes to the old provider after a move
After moving to Microsoft 365 or Google, delete every MX record that points to the old host. Leaving one “just in case” sends some mail there, even at a worse priority, whenever the main server is slow to answer.
Microsoft 365 wants exactly one MX, the yourdomain-com.mail.protection.outlook.com host, with the priority shown in the admin center. Google uses smtp.google.com at priority 1 for new setups.
Still getting mail at the old place after the records look right? Senders cache MX for the old TTL. And an old Exchange server inside your network can deliver to itself without even asking DNS.
MX record guide: priority, providers and problems
What is an MX record?
An MX (mail exchanger) record says which server receives mail for a domain. Each one has a priority number and a hostname. Senders try the lowest number first. No MX records means senders fall back to the A record, which almost never works.
How to check MX records
Type the domain above. From a terminal: dig MX example.com +short on Linux or Mac, nslookup -type=mx example.com on Windows. The tool also shows the IP behind each host and the provider, so you can see at a glance where mail goes.
MX record priority explained
Lower number means higher priority. With 10 mx1 and 20 mx2, senders use mx1 and only fall back to mx2 if mx1 does not answer. Equal numbers share the load. The number itself does not matter, only the order.
MX records for Microsoft 365 (Office 365)
One record: priority 0, host yourdomain-com.mail.protection.outlook.com. Your exact host is in the Microsoft 365 admin center under Settings, Domains. Microsoft is moving new domains to mx.microsoft hosts, use whatever the admin center shows.
MX records for Google Workspace
New setups use one record: priority 1, host smtp.google.com. Older setups use five records starting with aspmx.l.google.com. Both work. Do not mix the two styles.
MX record example for other providers
Zoho: mx.zoho.com (10), mx2.zoho.com (20), mx3.zoho.com (50). Proton: mail.protonmail.ch (10), mailsec.protonmail.ch (20). Always copy the values from your provider panel, they sometimes change by region.
Multiple MX records: is it ok?
Yes, from the same provider. No, from two providers. Mixing Google and Microsoft MX records splits incoming mail randomly between two inboxes. After a move, delete every MX record of the old provider.
MX record not found or no MX record
Check the host field: MX records belong on the root (@ or empty), not on www. Check the type is MX, not CNAME. A CNAME at the root, or an MX pointing to a CNAME, breaks mail on many servers.
MX record pointing to an IP address
Not allowed by the standard. An MX must point to a hostname that has an A record. Create mail.example.com with an A record to the IP, then point the MX at that name.
How long do MX record changes take?
As long as the old TTL, often an hour, sometimes a day. Lower the TTL to 300 a day before moving email, change the records, then raise it again. Use the propagation checker to watch resolvers pick it up.
MX lookup vs SPF
MX is for receiving mail, SPF is for sending. A domain can receive with Google and send newsletters through another service. Each sending service goes in SPF, only the receiving provider goes in MX.
Check MX records with nslookup and dig
Windows: nslookup, then set type=mx, then the domain. Or in one line nslookup -type=mx example.com 8.8.8.8. Linux and Mac: dig MX example.com +short shows priority and host. Add @1.1.1.1 to ask a specific resolver.
MX record TTL: what to set
3600 (one hour) is a good normal value. Lower to 300 a day before a mail move, then set it back. Very low TTLs all the time add DNS queries with no benefit.
Backup MX servers: still useful?
Rarely now. Senders retry for days when your main server is down, so mail is not lost. A badly set up backup MX with weaker spam filtering becomes a spam entry point. Hosted providers like Microsoft and Google have their own redundancy.
MX lookup shows the wrong provider
Someone changed DNS, or you are looking at the wrong DNS host. Check NS records to see which host is live, then fix MX there. Also check for a typo in the domain you typed.
Receive mail at a subdomain
Add MX records on the subdomain, like support.example.com, pointing at the service that should receive it. Subdomains do not inherit MX from the root.
Null MX: domains that do not receive mail
A domain that never receives mail can publish a null MX: priority 0 with a single dot as host. Senders then reject mail to it right away instead of trying for days.
MX and the email security gateway
With Proofpoint, Mimecast or similar in front, MX points to the gateway, and the gateway forwards to Microsoft 365 or Google. Lock the mailbox provider to accept mail only from the gateway, or spammers can skip it.
How to test incoming mail after an MX change
Send a mail from an outside account, like a personal Gmail, to an address on the domain. Check it arrives in the new mailbox, and look at the headers to see which servers it passed.
MX record for cPanel and shared hosting
Hosting panels often set MX to mail.yourdomain.com or the server name. If you use Microsoft 365 or Google instead, change the email routing in cPanel to remote, or local delivery will keep your mail on the server.
Frequently asked questions
Why do I see several MX records?
For backup. If the first server does not answer, senders try the next one. Big providers give you 2 to 5 of them.
MX points to an IP address
That is not allowed. MX must point to a hostname, which then has an A record. Some servers accept it, many reject mail.
Changed MX and mail still goes to the old place
Old records are cached until their TTL runs out, often 1 hour, sometimes a day. Check with the DNS propagation checker.
Related tools
- Email domain health check: MX plus SPF, DKIM and DMARC
- DNS lookup: every other record type
- Reverse DNS lookup: PTR for the mail server IP