MX records in 30 seconds
- An MX record (mail exchange) is a DNS record that names a server that accepts email for a domain, with a priority number. Senders try the lowest number first.
- It has routed internet email since January 1986 (RFC 974). The history.
- No MX record means senders fall back to the domain's A record. A null MX (
0 .) means the domain takes no mail at all. - Check any domain in seconds with our free MX lookup, which runs in your browser.
How email finds its way
- You send to
[email protected]. Your mail server takes the part after the @. - It asks DNS for the MX records of
acme.comand gets a list of host names with priorities. - It looks up the IP address of the lowest-priority host and connects to it on port 25.
- If that host doesn't answer, it tries the next one, and keeps retrying for days before giving up with a bounce.
Every step depends on those records being right. A typo in an MX record silently drops a company's inbound mail, and it's also the first thing an email verifier checks: an address on a domain with no working MX can't exist. What is an MX record? covers the basics in more depth.
How MX records work
- A short history of the MX record: from MD and MF records to RFC 974, 5321 and null MX.
- MX priority explained: lower first, equal numbers share the load, and what senders do when a server is down.
- Null MX (RFC 7505): how a domain says "we accept no email".
- What happens with no MX record: implicit MX and why it usually ends in bounces.
- Can an MX record point to a CNAME? The rule and what really happens.
- Backup MX records: when a secondary helps and when it attracts spam.
Checking and changing MX records
- How to check MX records with dig, nslookup, PowerShell or our tool, and how to read the output.
- How to change MX records safely: TTLs, cutover, propagation and rollback.
- MX record mistakes and how to fix them.
- How to find out who hosts a domain's email.
- Email routing glossary: MX, MTA, PTR, STARTTLS, MTA-STS and 40+ more terms.
MX records by email provider
The exact records each provider tells you to publish, checked against their own documentation and against live domains that use them.
| Mailbox providers | Hosting and domain companies | Routing and security gateways |
|---|---|---|
| Google Workspace Microsoft 365 Zoho Mail Proton Mail Fastmail iCloud Mail Titan Rackspace Email Amazon WorkMail |
GoDaddy Namecheap Private Email Hostinger IONOS |
Cloudflare Email Routing Proofpoint Mimecast |
Free MX Tools
All of these run in your browser against public DNS. None of them contacts a mail server or sends an email.
- MX lookup: records, priorities, provider, IPs and reverse DNS.
- Domain health report: MX, SPF, DKIM, DMARC, MTA-STS, TLS-RPT, BIMI and DNSSEC, scored.
- Blacklist checker: 13 DNS blacklists, honestly reported.
- SPF and DMARC record generators, and the header analyzer.
Why we wrote this
We're named after the MX record (here's why), and checking it is the first step of every email verification we run. If you manage a contact list, the same routing rules decide which of your addresses can receive mail at all. Verify 25 addresses free to see how many of yours can.