MX (Mail Exchange) is a DNS record type that specifies mail servers for a domain. It contains a priority (lower number = higher priority) and the hostname of a mail server. Without MX records a domain cannot receive email. Multiple MX records are used for failover.
Free online tool — mx lookup checker: instant results, no signup.
MX (Mail Exchange) is a DNS record type that specifies mail servers for a domain. It contains a priority (lower number = higher priority) and the hostname of a mail server. Without MX records a domain cannot receive email. Multiple MX records are used for failover.
Use the Enterno.io tool — enter a domain, get results in 1-2 seconds. Free, no signup.
MX records are essential for directing email traffic for a domain, and one of the critical components of an MX record is its priority value. The priority indicates the order in which mail servers should be used when delivering email. A lower number signifies a higher priority, meaning that mail servers with lower priority numbers will be tried first.
For instance, if a domain has two MX records: one with a priority of 10 and another with a priority of 20, the mail server associated with the priority 10 record will be contacted first. If that server is unreachable, the email will then be routed to the server with priority 20.
This prioritization is crucial for ensuring reliable email delivery. In scenarios where a primary mail server fails, having multiple MX records with different priorities allows for seamless failover. If you are configuring your domain's email settings, it's vital to set your MX records correctly to avoid email delivery issues.
Here’s an example of how you might configure MX records:
10 mail1.example.com20 mail2.example.comIn this configuration, mail1.example.com is the primary mail server, and mail2.example.com serves as a backup.
To verify the MX records for a domain, you can use several command-line tools that are available on most operating systems. The most common tools include nslookup, dig, and host. Each of these tools can provide detailed information about the MX records associated with a domain.
Here’s how to use each tool:
nslookup -type=MX example.comThis command will return the MX records for example.com.
dig installed, you can run:dig MX example.comThis will provide a detailed output including the priority and mail server names.
host command:host -t MX example.comThis command will also display the MX records for the specified domain.
Checking MX records regularly is a good practice to ensure that your email configuration is correct and functioning as intended, especially after making changes.
Misconfigurations of MX records can lead to significant email delivery issues. Understanding common pitfalls can help you troubleshoot and resolve problems effectively.
Here are some common misconfigurations:
If you encounter issues, start by verifying your MX records using the command-line tools described earlier. Review the output for discrepancies and consult your DNS provider's documentation for proper configuration guidelines.
MX (Mail Exchanger) records specify which server receives email for a domain. When there are email problems, MX records and their priorities are the first thing to check.
Complete list of MX servers with priorities and TTL.
Resolve MX hostnames to IP addresses for the full picture.
Check if MX servers are included in the domain's SPF record.
Direct query to authoritative DNS without caching.
deliverability diagnostics
mail server setup
email API integration
post-mail migration check
DNS monitor notifies when your domain MX records change.
Sign up freeSee the full breakdown in the article above. For a quick check, use our online tool.
Usually no — most modern services configure it automatically. Manual setup is only needed for migrations or exotic configurations.
Free plan — 10 monitors, checks every 5 min, no card required. Upgrade for 1-minute interval and multi-region monitoring.