EMAIL DNS

MX lookup: find the mail servers for any domain

Enter a domain to see where its email is delivered: each mail server, its priority and its IP addresses, with warnings for common problems.

Domain name
The basics

What is an MX record?

An MX (mail exchanger) record is a DNS record that says which servers accept email for a domain. When someone sends a message to [email protected], their mail server looks up the MX records for example.com and delivers the message to the server named there.

Each MX record has a priority number. Sending servers try the lowest number first and move on to the higher numbers only if that server is unreachable, which gives you backup mail servers. Records with the same priority share the load, and the sender picks between them.

This lookup reads the MX records through public DNS-over-HTTPS resolvers, then resolves each mail server to its IPv4 and IPv6 addresses, recognises well-known email providers and flags common configuration mistakes.

Reference

Common email providers and their MX hostnames

ProviderMX hostnames usually look like
Google Workspace / Gmailaspmx.l.google.com and the alt servers, or smtp.google.com
Microsoft 365 / Outlookyourdomain-com.mail.protection.outlook.com
Proton Mailmail.protonmail.ch and mailsec.protonmail.ch
Zoho Mailmx.zoho.com, mx2.zoho.com
Fastmailin1-smtp.messagingengine.com
Cloudflare Email Routingroute1.mx.cloudflare.net and similar
Apple iCloud Mailmx01.mail.icloud.com
Yahoo Mailmta5.am0.yahoodns.net and similar
Troubleshooting

MX record problems that stop email arriving

No MX record at all

Without any MX record, sending servers fall back to the domain's A or AAAA record and try to deliver there. Most hosted email providers will not accept mail that way, so add the MX records your provider gives you.

MX points to an IP address

An MX record must name a host (such as mail.example.com), never a raw IP address. Create an A record for the host and point the MX at that name.

MX points to a CNAME

The name an MX record points to should have its own A or AAAA record, not be an alias. Some mail servers refuse to deliver when they meet a CNAME.

Wrong priorities

The lowest number is tried first. If an old server still has the lowest number after a migration, mail keeps going there. Remove the old records once the new ones work.

Records changed but mail still goes to the old server

Senders cache MX records for the record's TTL. Use the DNS propagation checker with type MX to see whether public resolvers have picked up your change.

Next steps

After the MX records are right

MX records only decide where incoming mail goes. To make sure the mail you send is trusted, the domain also needs an SPF record and, ideally, DKIM and DMARC. This page shows whether SPF and DMARC records exist; the SPF checker validates the SPF record in detail, and the email header analyzer shows how a real message was authenticated.

FAQ

Frequently asked questions

What is an MX lookup?

An MX lookup asks DNS for a domain's mail exchanger records: the list of mail servers that accept email for the domain, with their priorities. It is the first thing to check when email to a domain bounces or goes missing.

What does MX priority mean?

It is the order servers are tried in. The record with the lowest number is the primary mail server. Higher numbers are backups that are used only when the lower ones cannot be reached. Equal numbers share the load.

How do I find my domain's mail server?

Enter your domain above. The server with the lowest priority number is where your email is delivered, and the detected provider (for example Google Workspace or Microsoft 365) is shown when the hostnames match a known service.

What if a domain has no MX records?

Mail servers then fall back to the domain's A or AAAA record, as the email standard (RFC 5321) describes. In practice you should always publish MX records. A domain that does not want email can publish a "null MX" record, which this tool recognises.

Can I enter an email address?

Yes. The part after the @ sign is used. Only the domain is looked up; the mailbox name is ignored and nothing is sent to the address.

Why are the IP addresses of large providers different each time?

Big providers use many mail servers and rotate the addresses behind each hostname. The list shown is what the public resolver returned at that moment.