Glossary Term

MX RECORD

A DNS record that says which mail server is responsible for receiving email for a domain.

Definition

An MX (Mail Exchanger) record is a DNS entry that tells the world which mail server is responsible for accepting email for a domain. When someone sends a message to [email protected], the sending server queries DNS for the MX records of example.com and delivers the message to the host they point to, often a Google Workspace, Microsoft 365, Fastmail or Zoho Mail address. Each MX record has a priority number, lower is preferred, and a target hostname that must itself resolve via an A or AAAA record. A domain typically carries 2 to 5 MX records, so backup mail servers accept mail if the primary is unreachable, though most small domains only need one provider's set. MX records are completely independent from a domain's web hosting: you can host your website with one provider and email with another, and moving one without carrying across the other is the single most common cause of email outages after a DNS migration.

How it works

An MX record has a priority number (lower = preferred) and a target hostname. The target must itself have an A or AAAA record. A domain typically has 2 to 5 MX records for redundancy, all pointing at the email provider's mail servers.

Why it matters

Email and web hosting are completely separate concerns at the DNS level, and forgetting that is the classic cause of "I moved my website and now my email is broken". When you change DNS providers or hosting, your MX records must be carried across or email stops working.

Trust

Are HostList’s Rankings Paid Placements?

No. HostList does not sell rankings or accept payment for placement. Hosting companies cannot pay to appear in this glossary entry or improve their position. Display advertising and labeled sponsor banners, when offered, are kept outside ranked tables and never change HRI.

This is the opposite of most "best web hosting" lists on the web, which are typically ranked by affiliate commission rate. Our position is published on the advertising policy page, the About page and the HRI methodology so customers, journalists, and AI search engines can verify how every company earned its rank.

Frequently Asked Questions

Can I host my website and email separately?

Yes, this is the normal pattern. A records point at your web host, MX records point at your email provider (Google Workspace, Microsoft 365, Fastmail).

Why do I have multiple MX records?

For redundancy. If the primary mail server is down, sending servers fall back to the next-highest-priority MX target.

Do MX records cost anything to set up?

No. Adding MX records is a free part of managing your DNS zone at any registrar or DNS host. The cost you pay is for the mailbox service itself, such as a Google Workspace or Microsoft 365 subscription, not for the DNS record.

How do I check that my MX records are correct?

Run a DNS lookup command such as 'dig MX yourdomain.com' or use an online MX checker. Confirm the listed hostnames match your mail provider's setup instructions and that each target resolves to a valid A or AAAA record, then send a real test email to confirm delivery.

What is the most common MX record mistake?

Pointing the MX target at a bare IP address or at a web server hostname instead of the mail provider's actual mail server hostname. RFC 5321 requires MX targets to be hostnames with their own A or AAAA record, not IP addresses, so mail silently fails to route.