Skip to main content
Free lookup - no signup required

MX Record Lookup

Look up the MX records of any domain: every mail server in the order senders try them, the IPv4 and IPv6 address of each, and the mail provider behind them.

Look up MX records

Enter a domain to list its mail servers, their priority and the addresses each one resolves to. Free, no signup.

What an MX record is

An MX (mail exchanger) record tells sending mail servers where to deliver email for a domain. Each record holds two things: a priority number and the hostname of a mail server, for example 10 mx1.example.com. A domain can publish several. The hostname must have its own A or AAAA record: an MX may not contain an IP address, and it should not point at a CNAME alias. This lookup reads the MX set, sorts it the way a sender does, and then resolves every mail host to its addresses, so you see in one place whether mail for the domain has somewhere to go.

How MX priority works

Lower numbers win. A sender sorts the MX records by priority and tries the lowest number first; only when every host at that priority refuses or cannot be reached does it move to the next number. Hosts that share a priority are tried in random order, which spreads the load between them (RFC 5321 section 5.1). The numbers are only relative: 10 and 20 behave exactly like 1 and 2. Be careful with backup MX hosts that you do not run yourself. Spammers deliberately deliver to the highest-numbered MX because backups often filter less strictly than the primary, so a backup should apply the same filtering and recipient checks.

How to read the result

The table lists the MX records in the order senders try them, with the IPv4 and IPv6 addresses each mail host resolves to. A host with no address at all is a hard failure: mail routed to it cannot be delivered, and senders fall through to the next priority or queue the message. An empty IPv6 column is normal; many mail hosts are IPv4 only. The "mail handled by" fact names the service when the hostnames belong to a well-known provider such as Google Workspace or Microsoft 365. The TTL shows how long resolvers may keep using the current MX set after you change it.

Common MX problems and how to fix them

A missing trailing dot in a zone file turns mx.example.com into mx.example.com.example.com, which resolves to nothing; write the full name with a final dot, or use your DNS panel's hostname field as intended. After a move to a new mail provider, old MX records left in place make senders split mail between the old and new system, so delete the previous provider's records when you add the new ones. An MX that points at a CNAME works with most senders but breaks with some; point it at the real hostname. An MX that contains an IP address is invalid and is ignored. And a domain with no MX at all still receives mail at its A record address, which is rarely what you want: publish real MX records, or a null MX if the domain never receives mail.

Changing mail provider without losing mail

Read the TTL on your MX records a day before the switch and lower it to a few minutes, so resolvers forget the old set quickly. Create the mailboxes at the new provider first, then replace the MX records. Keep the old mailboxes running until the old TTL has passed, because some senders still deliver there for that long. Then update the rest of the mail setup that names the provider: the SPF include, the DKIM selector records, and the mx patterns in an MTA-STS policy if you publish one. Finish by testing the new hosts with the SMTP TLS checker.

What This Checks

  • MX records of the domain, sorted the way senders try them
  • IPv4 (A) and IPv6 (AAAA) addresses of every mail host
  • Mail hosts that resolve to nothing, are aliases, or are IP addresses
  • Null MX (RFC 7505) and MX records left next to it
  • Recognised mail provider and the MX TTL

Common Fix Path

  • Point each MX at a hostname with its own A or AAAA record
  • Delete the previous provider's MX records after a migration
  • Publish a null MX on domains that never receive mail
  • Lower the TTL a day before changing MX records

Frequently Asked Questions

What is an MX lookup?
An MX lookup asks DNS for the MX records of a domain: the list of mail servers that accept email for it, each with a priority. This tool also resolves every mail server hostname to its IPv4 and IPv6 addresses, so you can see whether each one is reachable.
Which MX record is used first?
The one with the lowest priority number. Senders try it first and move to higher numbers only when every host at the lower priority fails. Hosts with the same priority are tried in random order, which spreads mail across them.
Can an MX record point to an IP address or a CNAME?
No to an IP address: an MX must name a host, and a record holding an IP address is invalid. Pointing at a CNAME is forbidden by RFC 2181 section 10.3; many senders follow the alias anyway, but some do not, so point the MX at a hostname with its own A or AAAA record.
What happens if a domain has no MX record?
Senders fall back to the domain's own A or AAAA address and try to deliver there (RFC 5321 section 5.1). If the domain should never receive mail, publish a null MX, a single record of 0 . as defined in RFC 7505, so senders bounce at once instead of retrying.
How long does an MX record change take to work?
Up to the TTL of the old records. A resolver that cached the previous MX set keeps using it until its TTL runs out. Lower the TTL a day before a planned change, and keep the old mail server accepting mail until the old TTL has passed.
Do I need more than one MX record?
Not with a hosted provider such as Google Workspace or Microsoft 365, which run redundant servers behind the names they give you. For a self-hosted server, a second MX only helps if it is a real, equally well-filtered server; senders already queue and retry for days when the only MX is down.

Machine-Readable Evidence

AI assistants and automation can cite the stable explanation page, then fetch the live check result for a specific domain.

GET https://intodns.ai/api/dns/lookup?domain=example.com&type=MX

Related Tools and Citations