MX lookup

Find all mail servers for a domain name with this online DNS MX checker. For example, try spotify.com or europa.eu to view their MX records.

How to lookup MX records

Jump to

MX records can be configured by the owner of a domain name. They are used to store information in the DNS, which can be looked up by anyone. Each record type has a different purpose. The purpose of MX records is to publish the location of mail servers of a domain name. Whenever a mail client sends an email, it first looks up the MX records of the recipient. Learn more about MX records.

MX records are configured in DNS. But how can you look up these MX records? That depends on the operating system you are using. Windows, Linux and Mac all have a different way of finding MX records. The sections below contain instructions for each operating system.

Example output of a MX lookup query

How to lookup MX records on Windows

To check the MX records for a certain domain name on Windows, follow these steps:

  1. Open a command prompt by navigating to Start → 'Type here to search' → 'cmd' → Open.Open a command prompt in Windows
  2. Type nslookup -q=MX example.com and hit [enter] to get the MX records for example.com.MX lookup in Windows
  3. The MX records are listed below the Non-authoritative answer heading.

How to lookup MX records on Mac OS

To check the MX records for a certain domain name on a Mac, follow these steps:

  1. Open a terminal by entering [command] + [space] → 'terminal.app' → [enter].Open a terminal on a Mac
  2. Type dig example.com MX and hit [enter] to get the MX records for example.com.MX lookup on a Mac
  3. The MX records are listed below the ANSWER SECTION heading.

How to lookup MX records on Linux

To check the MX records for a certain domain name on Linux, follow these steps:

  1. Open a terminal by entering [Super] → 'terminal' → [enter].Open a terminal in Linux
  2. Type dig example.com MX and hit [enter] to get the MX records for example.com.MX lookup in Linux
  3. The MX records are listed below the ANSWER SECTION heading.

How to find MX records

To check the MX records of a domain, follow these steps:

  1. Open the MX lookup tool.Open the MX lookup tool
  2. Enter the domain name and hit [enter].Example DNS MX records
  3. The tool will query the MX records and shown them at the top of the page.

How to lookup other record types

There are other types of DNS records then just MX. The most commonly used DNS record types are A, AAAA, CNAME, NS, TXT, MX and SOA. If you'd like to look up all records of these record types, you can do so with nslookup. Click any of the record types below to find DNS records for that specific record type.