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.

MX

2 MX records found

example.com · looked up in 41ms · Proton Mail

10mail.protonmail.ch
Proton Mail
20mailsec.protonmail.ch
Proton Mail
SPFFound, soft fail (~all)
DMARCFound, policy quarantine

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

1

Enter Domain

Type a domain, a URL or an email address. We use the domain part.

2

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.

3

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 records

The 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 resolve

A 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 CNAME

The 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 address

The 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 providers

MX 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 SPF

No 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 DMARC

Receivers 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 +short

Prints 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.com

The same lookup with the tool that ships with Windows. The priority is shown as MX preference.

Check the SPF record

dig example.com TXT +short

SPF is one of the domain's TXT records: the one that starts with v=spf1.

Check the DMARC policy

dig _dmarc.example.com TXT +short

DMARC 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.

ProviderMX hostnames
Google Workspacesmtp.google.com (older setups: aspmx.l.google.com)
Microsoft 365yourdomain-com.mail.protection.outlook.com
Proton Mailmail.protonmail.ch, mailsec.protonmail.ch
Zoho Mailmx.zoho.com, mx2.zoho.com, mx3.zoho.com
Fastmailin1-smtp.messagingengine.com, in2-smtp.messagingengine.com
iCloud Mailmx01.mail.icloud.com, mx02.mail.icloud.com
Cloudflare Email Routingroute1.mx.cloudflare.net, route2, route3
Namecheap Private Emailmx1.privateemail.com, mx2.privateemail.com

Frequently Asked Questions

An MX record lookup asks DNS which mail servers accept email for a domain. The answer is a list of hostnames, each with a priority number that sets the order senders try them in. This tool shows that list, resolves every mail server to its IP addresses, names the email provider behind them, and checks whether the domain has SPF and DMARC records.

Enter the domain above and the lookup runs at once, with no signup. On the command line the same lookup is 'dig example.com MX +short' on macOS and Linux, or 'nslookup -type=mx example.com' on Windows. The tool adds what those commands leave out: the addresses behind each server, the provider, and the SPF and DMARC records.

It sets the order. A sending server tries the MX record with the lowest number first and moves to the next one only if that server does not answer. Two records with the same number share the mail between them. The numbers themselves carry no meaning beyond their order, so 1 and 5 behave the same as 10 and 20.

Look at the hostnames in its MX records. Names ending in google.com mean Google Workspace or Gmail, mail.protection.outlook.com means Microsoft 365, protonmail.ch means Proton Mail, and so on. This tool matches the hostnames against a list of common providers and shows the name. If the MX records point at a filtering gateway such as Mimecast or Proofpoint, the mailboxes may live with another provider behind it.

Yes, and it is common. When two records share a priority number, senders pick between them at random, which spreads the mail across both servers. Google's older setup does this with alt1 and alt2 both at priority 5.

MX records only control where mail for your domain is delivered. Whether the mail you send is trusted depends on SPF, DKIM and DMARC. Check the SPF and DMARC section of the result above: a missing record, or two SPF records, is the usual cause.

Either email was never set up for it, or the records were removed, often during a move between DNS providers when only the website records were copied. Without MX records most mail to the domain bounces. Add the records your email provider lists in its setup guide, or publish a null MX record if the domain should not receive mail.

It checks SPF and DMARC. For SPF it shows the record and how it ends (-all, ~all, ?all or +all) and flags a domain with more than one SPF record. For DMARC it shows the record and its policy. It does not check DKIM, because a DKIM key is stored under a selector name that only the sending service knows.

As long as the TTL on the old record. Resolvers cache MX records for that time, commonly one hour, sometimes up to a day. Until it runs out, some senders still deliver to the old mail servers. Lower the TTL a day before a planned move and keep the old mailboxes reachable until the change has spread.

Yes. There is no signup and no account. Lookups are limited to 20 a minute per visitor to keep the service fast for everyone. You can copy the report, download it as a text file, or share a link that runs the same lookup again.

A lookup shows the state right now. exit1.dev checks continuously: website and API uptime, SSL certificate expiry and domain expiry, with alerts by email, Slack, Discord, Teams or webhook. You can also add your mail server's hostname as a ping check, so you hear about it when the server stops answering.

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