The Website Previewer

MX record

An MX record tells the world which mail server handles email for a domain.

When you send mail to user@example.com, your mail server queries DNS for example.com's MX records, gets back one or more mail-server hostnames with priorities, and connects to the lowest-priority host that responds. Format: example.com. 3600 IN MX 10 mail.example.com. The number is the priority — lower wins. Multiple MX records provide redundancy: lowest tries first, fallback if down.

MX records are independent from A records. Switching your website's A record to a new host doesn't move email — your old MX records keep email flowing to the old mail server until you explicitly update them. This is the most common migration mistake: web users see the new site, but emails go to a server that no longer exists. Always plan MX migration as a separate step from web migration.

Try it: Email DNS checker

Related terms

Toggle navigation