MX records, or mail exchanger records, are used to specify the mail servers responsible for accepting email messages on behalf of a domain name. To check the MX records for a domain using nslookup, follow these steps:
- Open a command prompt or terminal window.
- Type the following command, replacing “example.com” with the domain name you want to check:
nslookup -type=MX example.com
Press Enter.
The output will display the MX records for the specified domain. Each record will include the priority of the mail server and the hostname of the mail server. The mail server with the lowest priority will be responsible for accepting email messages first.