What Is an MX Record?

Written by Geri Mileva

Definition

💡 A mail exchange (MX) record is a DNS record that routes emails to specific mail servers. They ensure smooth email delivery by providing an efficient routing mechanism for messages. Without MX records, your emails cannot reach the correct mail server and, consequently, the recipient’s inbox.

What type of information is contained in a DNX MX record?

A DNS MX record contains the following types of information:

Below is an example of what an MX record could look like:

example.com record type: priority: value: TTL
@MX 10 mailhost1.example.com 45000
@MX 20 mailhost2.example.com 45000

Source: https://www.cloudflare.com/learning/dns/dns-records/dns-mx-record/

What is the functionality of an MX record on a DNS server?

Here’s how MX records work:

An MX record has several key functions:

How do you find and check an MX record?

There are several ways to find and check your MX record:

  1. Use an online MX lookup tool like DNS Checker, NSLookup, or MxToolbox.
  2. Use command line tools on Windows, Mac, or Linux.
  3. Via a Chrome extension (DNS Lookup extension).

When checking your MX record, see that it points to an A or AAAA record (the hostname). Your MX record shouldn’t point to a canonical name (CNAME) because it’s forbidden, according to RFC 2181. If you’re planning to change your MX records, remember that this will also change the location of the mail server.

Related content

Related terms

Try Clean Email for Free
*****4.5based on 3,300 user reviews
Get Started
InboxClean Your Mailbox

Use tools like Cleaning Suggestions and Smart Folders to help you quickly clean out an overloaded inbox

Mute unwanted emailsUnsubscribe

Keep unwanted emails out of your inbox by unsubscribing—even from email lists that don’t have an unsubscribe link

Clean your emailsKeep it Clean

Automate repetitive tasks with Auto Clean rules to archive emails as they become old or to sort them into folders

Background
Use filters to find emails you want to clean.Arrow
Screener FeatureArrow
UnsubscribeArrow
Auto CleanArrow
Sender SettingsArrow