MX Lookup

Look up the Mail Exchange (MX) records for a domain.

How to read an MX answer

Each MX record has a priority and the host name of a mail server:

example.com.   3600   IN   MX   10 mx1.mail.example.net.
example.com.   3600   IN   MX   10 mx2.mail.example.net.
example.com.   3600   IN   MX   20 backup.example.org.
  • A sending server tries the lowest number first. Here it picks one of the two servers with priority 10 at random, which spreads the load between them.
  • The server with priority 20 is used only when no server with priority 10 accepts a connection.
  • 3600 is the time to live in seconds: resolvers keep the answer for one hour, so a change of mail provider takes up to that long to reach every sender.

MX configurations that lose or delay mail

  • MX points to an IP address. The target must be a host name with its own A or AAAA record. MX 10 192.0.2.25 is invalid and many senders refuse it.
  • MX points to a CNAME. The standard forbids an alias as an MX target; some senders follow it, others bounce the message.
  • Old provider still listed. After a migration, a leftover record of the previous provider receives part of the mail, which then bounces or disappears into an abandoned mailbox.
  • No MX record at all. Senders fall back to the domain's A record and try to deliver to the web server. A domain that receives no mail should say so with a null MX: MX 0 .
  • Backup server without spam filtering. Spam senders deliberately target the highest-numbered MX, because it is often less protected.

The MX record controls incoming mail only. Which servers may send for the domain is stated by its SPF, DKIM and DMARC records.

Related tools

MX records control where your email goes. One wrong change kills delivery.

Monitor MX records around the clock

  • ✓Continuous MX monitoring
  • ✓Instant change alerts
  • ✓SPF / DKIM / DMARC checks
  • ✓Email + Slack notifications
  • ✓Change history log
  • ✓Deliverability score
Start monitoring → 14-day free trial · No credit card required

Frequently Asked Questions

What is an MX record?

A Mail Exchange (MX) record specifies which servers receive email for a domain. When sending to user@example.com, the sending server looks up MX records for example.com and connects to the highest-priority host to deliver the message.

What does the MX priority number mean?

Lower priority values are preferred — MX 10 mail1.example.com is tried before MX 20 mail2.example.com. Multiple records with the same value are tried in random order (load balancing). Most providers use 10 as primary and higher values as backups.

Can a domain have no MX records?

Yes — if no Mail Exchange (MX) records exist, senders may fall back to the domain's A record per Request for Comments (RFC) 5321. Some domains publish MX 0 . (null MX per RFC 7505) to explicitly declare they don't accept email and prevent fallback delivery attempts.

Why do I see different MX records from different locations?

During Domain Name System (DNS) propagation, different nameservers may serve different values. GeoDNS services may also return different records based on resolver location. Use our DNS Propagation tool to check consistency across global resolvers.