What is an MX Record?

An MX record is a DNS record that tells the world — specifically, every mail server on the planet — where to deliver email for your domain. Without it, mail bounces.

The shape

example.com. IN MX 10 mail1.example.com.

"10" is the priority — lowest wins. If mail1 is unreachable, mail tries the next-lowest-priority MX. "mail1.example.com" is the hostname of the receiving mail server; that hostname needs its own A record.

What can go wrong

  • No MX record. Mail bounces with "no MX record for domain."
  • MX points at a CNAME. Forbidden by RFC. Some servers tolerate it; some reject.
  • MX hostname has no A record. Receiving servers can't connect.
  • MX server isn't reachable. Firewall blocking port 25 inbound, mail queue full, etc.

Our MX Lookup reports all of the above and also surfaces the SPF + DMARC posture in the same response.

Frequently asked questions

Why do I have multiple MX records?

Mail servers want backup. If the primary is down, mail retries the next-priority MX. Two or three MXes is normal for production setups.

Can my MX record point at Gmail?

Yes — Google Workspace customers point MX at smtp.google.com. Microsoft 365 points at <tenant>.mail.protection.outlook.com. The MX is just a hostname.

Get one fundamentals article a week

DNS, IPs, email deliverability, TLS — explained for sysadmins and curious developers. No spam, unsubscribe in one click.