An MX record, or Mail Exchanger record, is a type of Domain Name System (DNS) record that specifies the mail server responsible for accepting email messages for a particular domain name. When you send an email to an address like username@example.com, your email client will query the DNS for the MX record associated with example.com. The MX record will then direct your email client to the correct mail server, which will then deliver your message to the intended recipient.
There are a few different ways to check an MX record. One way is to use a command-line tool like dig or nslookup. Another way is to use a web-based tool like MXToolbox or DNS Checker. To check an MX record using dig, you can use the following command: