What it does
MX records tell the internet where to deliver mail for a domain. Each entry names a host and a preference number; senders try the lowest preference first and fall back to higher numbers when a host is unavailable. This tool lists the records and resolves every target.
How it works
The query returns one or more MX records, each with a preference and an exchange hostname. Lower preference means higher priority: 10 is tried before 20. Equal preferences are used for load sharing, with senders choosing among them.
The exchange hostname is resolved separately to A and AAAA records. An MX target that does not resolve is unusable, and a target pointing at a CNAME is invalid per the mail standards even though some senders tolerate it.
A null MX is a single record “0 .”. It declares that the domain accepts no mail. That is the correct configuration for a domain used only for web or a parked brand, and it prevents backscatter to an address nobody reads.
When no MX record exists, senders fall back to the domain's A or AAAA record as an implicit MX. That is a legacy behaviour and a common cause of mail being delivered to a web server. Publish an explicit MX or a null MX instead of relying on the fallback.
Delivery also depends on SPF, DKIM and DMARC and on the receiving host accepting the connection. MX records only describe where to try, not whether the destination will take the message.
When to use it
- Verify a new mail provider's MX records before cutting over.
- Check that backup MX hosts still resolve after a decommission.
- Confirm that a parked domain publishes a null MX instead of accepting mail.
- Diagnose “mail goes to the old server” after a DNS migration.
Glossary
- MX
- Mail Exchanger: a DNS record naming a host that accepts mail for the domain.
- Preference
- The priority number on an MX record. Lower values are tried first.
- Null MX
- The record “0 .”, which explicitly states that the domain accepts no mail.
- Implicit MX
- The fallback to a domain's A/AAAA record when no MX record exists.
- Backup MX
- A higher-preference host that queues mail when the primary is unavailable.
Frequently asked questions
What does the preference number actually do?+
It orders delivery attempts. Senders try the lowest number first and move to higher numbers only when a host is unreachable. It is not a weight and does not distribute load.
Can an MX target be a CNAME?+
No. The mail standards require the target to have address records. Some senders follow the CNAME anyway, but others reject it, so point MX at the canonical hostname.
Why does my domain accept mail with no MX record?+
Implicit MX: senders fall back to the domain's A or AAAA record. That usually means mail hits a web server. Publish a real MX or a null MX to make the intent explicit.
Should I use a backup MX?+
Usually not. Modern senders retry for days, and a badly configured backup can accept mail it cannot deliver, which creates backscatter. Use one only when you can queue and forward reliably.
Do MX records affect subdomains?+
No. Each name that receives mail needs its own MX records. A subdomain without them falls back to its own A/AAAA record, not the parent's MX.
API & MCP
The same result envelope is available over REST and MCP. Replace the sample value with your own target.
curl "https://100www.dev/api/v1/tools/mx-lookup?d=github.com"Shareable result
https://100www.dev/tools/mx-lookup?d=github.com

100www engineering
EditorialReviewed by Steve · · Report an error
Tested from the 100www probe network; results vary by location and network.


