Free Tool
MX Record Lookup
An MX record lookup shows which mail servers accept email for a domain and in what order senders try them. Enter a domain to see its MX records with priority, the email provider behind them, and whether SPF and DMARC are set. Free, no signup required.
What You Get
Here's an example of an MX lookup report. Try it above with any domain.
2 MX records found
example.com · looked up in 41ms · Proton Mail
The lookup starts with the domain's MX records: the mail servers that accept its email, each with a priority number. Senders try the lowest number first. The tool then resolves every mail server to its IP addresses, so a record that points at a name with no address shows up at once.
From the hostnames it works out the email provider, for example Google, Microsoft 365 or Proton Mail. Then it reads the two records people check next: SPF, which lists who may send for the domain, and DMARC, which tells receivers what to do with mail that fails the checks.
Need the other record types too? The DNS lookup tool returns A, AAAA, NS, TXT, SOA, CAA and CNAME alongside MX, and the nameserver lookup shows which DNS provider serves those records.
How It Works
Enter Domain
Type a domain, a URL or an email address. We use the domain part.
We Query the Mail Records
We read the MX records, resolve each mail server to its addresses, and fetch the SPF record and the DMARC policy.
Get Your Report
See every mail server with its priority, the email provider, SPF and DMARC status, and anything that needs fixing. Copy, download, or share.
How to Read MX Records
Every MX record has two parts: a priority number and the hostname of a mail server.
example.com. 3600 IN MX 1 aspmx.l.google.com.
example.com. 3600 IN MX 5 alt1.aspmx.l.google.com.
example.com. 3600 IN MX 5 alt2.aspmx.l.google.com.
example.com. 3600 IN MX 10 alt3.aspmx.l.google.com.
example.com. 3600 IN MX 10 alt4.aspmx.l.google.com.This is a domain on Google Workspace. Senders try priority 1 first. If that server does not answer they move to the two servers at priority 5, picking either one, and then to priority 10. Mail keeps arriving even when one server is down. The number 3600 is the TTL in seconds: resolvers keep the answer for an hour.
If the hostnames do not belong to the email provider you pay for, that is the problem to fix first.
What MX records tell you about a domain
Which email provider the domain uses
The hostnames give it away: Google, Microsoft, Proton, Zoho, or a server the company runs itself.
Whether there is a fallback
More than one MX record means mail has somewhere to go when the first server is down.
Whether the domain takes email at all
No MX records, or a null MX, means messages to that domain will not arrive.
MX Record Glossary
Plain definitions of the terms that come up in an MX record lookup.
MX record
Mail exchanger record. A DNS record that names the server accepting email for a domain. When someone writes to you@example.com, the sending server looks up the MX records for example.com to learn where to deliver.
Priority
The number in front of each MX record, also called preference. Senders try the lowest number first and move to the next one only when a server does not answer. Records with the same number share the load.
Backup MX
A second mail server with a higher priority number. It takes mail while the main server is down and passes it on later. Large hosted providers often publish a single MX name that already points at many servers.
Null MX
An MX record with priority 0 and a single dot as the target (RFC 7505). It states that the domain accepts no email at all, so senders fail at once instead of retrying for days.
SPF
Sender Policy Framework. A TXT record on the domain listing which servers may send its email. It ends in -all (reject the rest), ~all (treat the rest as suspicious) or ?all (no opinion).
DKIM
DomainKeys Identified Mail. A signature added to each outgoing message, checked against a public key in DNS. The key sits under a selector name chosen by the sending service, which is why a lookup tool cannot find it from the domain alone.
DMARC
A TXT record at _dmarc.yourdomain that tells receivers what to do with mail failing SPF and DKIM (none, quarantine or reject) and where to send reports. A subdomain without its own record uses its parent's.
TTL
Time to live. How long resolvers may cache a record. After you change MX records, some senders keep delivering to the old servers until the TTL runs out, so keep the old mailboxes open during a move.
Common MX Record Problems
What an MX lookup can show is broken, and what each one does to your email.
No MX recordsThe domain has nowhere to deliver mail
Without MX records a sender may try the domain's own A record as a last resort, but many do not, and the web server at that address rarely accepts mail anyway. If the domain should receive email, add the MX records your mail provider lists. If it should not, publish a null MX record so senders stop at once.
MX does not resolveA mail server hostname has no address
An MX record names a server, and that name needs its own A or AAAA record. A typo, or a server that was retired without removing its MX record, leaves senders with a name that leads nowhere. If it is the lowest priority number, every message is delayed while senders work down the list.
MX is a CNAMEThe mail server name is an alias
The DNS standard (RFC 2181) says an MX record must point at a name with its own address record, never at a CNAME. Many receivers cope with it, some do not, and the failures are hard to trace because they depend on who is sending.
MX is an IP addressThe record holds an address instead of a hostname
MX records take a hostname. An IP address in that field is read as a name that does not exist, so mail to the domain bounces. Create an A record for the address and point the MX record at that name.
Mixed providersMX records from an old provider were left behind
After a move from one email provider to another, the old MX records often stay in the zone. Senders then deliver part of your mail to mailboxes nobody reads any more. Every MX record should belong to the service that holds your mailboxes, or to the filtering gateway in front of it.
No SPFNo list of who may send for the domain
SPF is a TXT record that names the servers allowed to send email for your domain. Without it receivers cannot tell your mail from a forgery, and more of it lands in spam. One domain may have only one SPF record: two is an error that fails every check.
No DMARCReceivers have no policy to apply
DMARC tells receivers what to do when a message fails both SPF and DKIM, and where to send reports. Google and Yahoo require it from bulk senders. A policy of none only collects reports. Spoofed mail is blocked once the policy is quarantine or reject.
Check MX Records From the Command Line
Prefer a terminal? These commands run the same lookups.
Look up MX records on macOS or Linux
dig example.com MX +shortPrints each mail server with its priority number in front. The lowest number is tried first.
Look up MX records on Windows
nslookup -type=mx example.comThe same lookup with the tool that ships with Windows. The priority is shown as MX preference.
Check the SPF record
dig example.com TXT +shortSPF is one of the domain's TXT records: the one that starts with v=spf1.
Check the DMARC policy
dig _dmarc.example.com TXT +shortDMARC lives on the _dmarc subdomain. The p= tag is the policy: none, quarantine or reject.
MX Records of Common Email Providers
The mail server hostnames show who handles a domain's email. The tool above recognises these and many more.
| Provider | MX hostnames |
|---|---|
| Google Workspace | smtp.google.com (older setups: aspmx.l.google.com) |
| Microsoft 365 | yourdomain-com.mail.protection.outlook.com |
| Proton Mail | mail.protonmail.ch, mailsec.protonmail.ch |
| Zoho Mail | mx.zoho.com, mx2.zoho.com, mx3.zoho.com |
| Fastmail | in1-smtp.messagingengine.com, in2-smtp.messagingengine.com |
| iCloud Mail | mx01.mail.icloud.com, mx02.mail.icloud.com |
| Cloudflare Email Routing | route1.mx.cloudflare.net, route2, route3 |
| Namecheap Private Email | mx1.privateemail.com, mx2.privateemail.com |
Related Tools
The checks people run next, and the monitor that runs them for you.
DNS Lookup
Every record type for a domain: A, AAAA, MX, NS, TXT, SOA, CAA and CNAME.
Nameserver Lookup
The nameservers for a domain, the IPs behind them and who runs the DNS.
Domain Expiry Checker
Expiry date, days remaining, registrar and status codes from RDAP and WHOIS.
Domain expiration monitoring
Automatic expiry tracking for your domains, with alerts 30, 14, 7 and 1 day before the registration runs out.
Frequently Asked Questions
Learn More About Email DNS
Guides on MX records, email authentication and DNS changes.
SPF, DKIM and DMARC Explained
How the three email authentication records work together and how to set them up.
DNS Record Types Explained
A, AAAA, MX, CNAME, TXT, NS, SOA and CAA: what every record type does and when you need it.
How to Check DNS Records
Looking up records with dig, nslookup and online tools, step by step.
DNS Propagation Explained
Why an MX change is not instant, how TTL and caching work, and how to plan a mail move.
Last updated · Built and maintained by exit1.dev: uptime, SSL, and domain monitoring with instant alerts.
Keep the Whole Domain Healthy
A lookup shows the state right now. exit1.dev checks your websites, SSL certificates and domain registrations around the clock and alerts you the moment something breaks, so an expired domain never takes your email down with it.
Start Free Monitoring