Obtain internet mail exchanger records with the nslookup.exe utility
This article explains how to obtain internet mail exchanger (MX) records for the Simple Mail Transfer Protocol (SMTP) domain by using the Nslookup.exe utility.
Original KB number: 203204
When you troubleshoot SMTP problems, you may want to obtain the Domain Name System (DNS) records for the SMTP domain in question. You can use the nslookup.exe utility to collect this information.
DNS must be configured properly on the computer running the nslookup.exe utility. If DNS isn't configured, an error message is displayed when the nslookup.exe utility starts.
Steps to use nslookup.exe
Open a command prompt.
This sets a filter to only collect MX records and related information.
where <domain_name> is the domain that you want to obtain the DNS records for, for example,
msn.com. An output like the following is displayed:
Server: [18.104.22.168] Address: 22.214.171.124 microsoft.com MX preference = 10, mail exchanger = mail1.microsoft.com microsoft.com MX preference = 10, mail exchanger = mail2.microsoft.com microsoft.com MX preference = 10, mail exchanger = mail3.microsoft.com microsoft.com MX preference = 10, mail exchanger = mail4.microsoft.com microsoft.com MX preference = 10, mail exchanger = mail5.microsoft.com mail1.microsoft.com internet address = 126.96.36.199 mail2.microsoft.com internet address = 188.8.131.52 mail3.microsoft.com internet address = 184.108.40.206 mail4.microsoft.com internet address = 220.127.116.11 mail5.microsoft.com internet address = 18.104.22.168