MX Lookup: Check the MX Records of Any Domain
Enter a domain to see the mail servers that receive its email, with their priority and TTL. Find out who hosts a domain's email and spot MX errors in seconds.
Results
- Free MX lookup
- Live DNS results
- No signup required
Watch: MX lookup in 2 minutes
Chapters
- 0:00 Nearly 1 in 3 sending domains have no MX record
- 0:14 mailX in 10 seconds
- 0:25 What is an MX record? Host name and priority
- 0:47 Live MX lookup: Google Workspace
- 1:04 Microsoft 365, backup MX and no MX
- 1:25 Data: 32% of sending domains have no MX record
- 1:39 The same check inside ChatGPT
- 1:53 3 MX mistakes to fix
- 2:14 Check your MX records free
What does this MX lookup show?
Everything you need to confirm where a domain's email goes.
Mail server hostnames
Every MX record published for the domain: the servers that accept its incoming email.
Priority
The preference value of each server. Senders try the lowest number first and fall back to the others.
TTL
The time to live in seconds, as returned by the resolver. While a record is cached, this can be lower than the value set in your DNS zone.
Email provider
The hostnames reveal the provider: google.com for Google Workspace, mail.protection.outlook.com or mx.microsoft for Microsoft 365, zoho.com for Zoho Mail...
Missing MX detection
If the domain has no MX record, the result says so, which explains bounced or lost incoming email.
Live DNS answer
Each lookup queries DNS when you run it. After a change, cached values can take up to the old TTL to update.
How to check MX records
Five steps to confirm that a domain receives email where it should.
Enter the domain
Type the domain after the @, such as example.com. MX records live on the domain itself, not on www.
Run the lookup
mailX queries DNS and lists every MX record with its priority and TTL.
Identify the provider
Read the hostnames: they should belong to the email provider you pay for. Old servers left over from a previous provider are a common cause of lost email.
Check the priorities
The main server should have the lowest number. Backup servers get higher numbers. Equal numbers share the load.
Re-check after a change
After editing MX records, wait for the previous TTL to pass, then run the lookup again to confirm the new values are live.
What is an MX record?
An MX (Mail Exchanger) record tells the world which servers accept email for a domain. When someone sends a message to you@example.com, their mail server looks up the MX records of example.com and delivers the message to the server with the lowest priority number. If that server does not answer, it tries the next one.
Each MX record has two parts: a priority (also called preference) and a hostname. The hostname must be a name that has an A or AAAA record. It cannot be an IP address or a CNAME (RFC 2181).
MX records only control incoming email. They have no effect on where you send from. Sending is authorized with SPF, DKIM and DMARC, which you can check with the SPF, DKIM and DMARC checker.
MX records of a Google Workspace domain:
MX records of a Microsoft 365 domain:
Primary and backup servers:
example.com. IN MX 20 mx2.example.net.
Related mailX tools
Check the other records that make email work.
What your MX records say about the email provider
MX hostnames are the fastest way to find out who hosts a domain's email. These patterns cover the most common providers.
MX hostname pattern and provider:
*.mail.protection.outlook.com or *.mx.microsoft: Microsoft 365
mx.zoho.com, mx2.zoho.com, mx3.zoho.com (or zoho.eu, zoho.in): Zoho Mail
mx01.mail.icloud.com, mx02.mail.icloud.com: iCloud Mail (custom domain)
*.secureserver.net: GoDaddy
mx00.ionos.com, mx01.ionos.com (or .de, .co.uk): IONOS
mx1.hostinger.com, mx2.hostinger.com: Hostinger
in1-smtp.messagingengine.com, in2-smtp.messagingengine.com: Fastmail
*.pphosted.com, *.mimecast.com: email security gateway in front of the real mailbox
Common MX record errors
What the lookup reveals and how to fix it.
No MX record
The domain cannot receive email reliably. Add the MX records your email provider gives you in your DNS host.
Old provider still listed
After a migration, an MX from the previous provider is still there. Some messages go to the old server and look lost. Remove it.
MX pointing to an IP or a CNAME
An MX target must be a hostname with an A or AAAA record. Replace an IP with a hostname, and do not use a CNAME target.
Wrong priorities
A backup server has a lower number than the main one, so it receives the mail first. Give the main server the lowest number.
Typo in the hostname
One wrong character and senders cannot find the server. Compare each value with your provider's instructions.
Null MX on purpose
A single MX with priority 0 and an empty target (shown as "." in DNS) is a Null MX (RFC 7505): the domain does not accept email. Fine for domains that never receive mail, a problem if it was a mistake.
MX and DNS guides
Go further on the records behind your email.
How to Get MX Records with nslookup
Check MX records from the command line on Windows, macOS and Linux.
DNS Record Types Explained
A, AAAA, CNAME, MX, TXT and PTR records, and the role each one plays in email.
How to Check DNS Configuration
A practical checklist to verify the DNS records your email depends on.
How to look up MX records from the command line
You can run the same check from a terminal. Replace example.com with your domain.
If no MX line comes back, the domain has no MX record. Use mailX when you want the result without a terminal, or to share it with your IT team or email provider.
macOS and Linux (dig):
Windows (Command Prompt):
Windows (PowerShell):
Reading your MX lookup results
What each result means and what to do next.
MX records found
The domain can receive email. Check that every hostname belongs to your current provider and that the main server has the lowest priority.
No MX record found
The domain has no mail servers declared. Add the MX records from your email provider, then check again after the TTL.
Invalid domain
The input is not a valid domain. Enter only the domain, such as example.com, without http:// or an email address.
Receiving works. What about sending?
MX records route incoming mail. SPF, DKIM and DMARC decide whether your outgoing mail reaches the inbox. Check them for free in one test.