MX Lookup

List the mail servers that receive email for a domain.

FreeNo sign-upUses public DNS data
Loading tool…

An MX (mail exchanger) record tells the internet which servers accept email for a domain. Each MX record has a priority number and a hostname, and sending servers try the lowest number first.

How to read the results

The priority (also called preference) decides the order. If the server with priority 1 does not answer, senders move to priority 5, then 10, and so on. Records with equal priority share the load.

We also look up each mail server's IPv4 address. An MX that points to a name with no address is a broken record, and mail to that server will fail.

When the hostnames belong to a known service, we name it: Google Workspace, Microsoft 365, Zoho, Proton, Fastmail, Mimecast or Proofpoint.

Common MX problems

  • No MX record. Senders may fall back to the domain's A record, which rarely runs a mail server, so mail bounces.
  • MX points to an IP address. MX records must point to a hostname, never directly to an IP.
  • MX points to a CNAME. This is against the rules (RFC 2181) and some senders refuse it.
  • Old provider still listed. After moving providers, remove the old MX records, or some mail goes to an account you no longer read.

Domains that never receive email

If a domain should never receive mail, publish a null MX: one record with priority 0 and a single dot as the host (MX 0 ., RFC 7505). Senders then fail at once instead of retrying for days.

Pair it with v=spf1 -all and a DMARC p=reject record. This stops scammers from using an idle domain for phishing.

MX and security

MX records control where mail arrives. SPF, DKIM and DMARC control who may send it. For a full picture of a domain's email setup, run the email security score.

Frequently asked questions

What does MX priority mean?

Lower numbers are tried first. Senders use higher-numbered servers only when the lower ones are unavailable. Equal numbers share the load.

How long do MX changes take?

They take effect as caches expire, which depends on the TTL shown. Plan for up to 48 hours when you switch providers.

Can an MX record point to an IP address?

No. It must point to a hostname, and that hostname must have an A or AAAA record.

What is a null MX?

A single MX record with priority 0 and host "." which says the domain accepts no email. It is defined in RFC 7505.