- At a command prompt, type Nslookup, and then press ENTER.
- Type server <IP address>, where IP address is the IP address of your external DNS server.
- Type set q=MX, and then press ENTER.
- Type <domain name>, where domain name is the name of an external mail domain, and then press ENTER. The mail exchanger (MX) resource record for the domain that you entered should be displayed. If the MX record is not displayed, DNS is not configured to resolve external domain names.
The following example shows how the DNS server for example.com resolves the IP address of the external domain contoso.com:
C:\> nslookupDefault Server: pdc.corp.example.comAddress: 192.168.6.13> server 10.255.255.255Default Server: dns1.example.comAddress: 10.255.255.255> set q=mx> contoso.com.Server: dns1.example.comAddress: 192.168.10.10contoso.com MX preference = 10, mail exchanger = mail1.contoso.comcontoso.com MX preference = 10, mail exchanger = mail2.contoso.comcontoso.com MX preference = 10, mail exchanger = mail3.contoso.commail1.contoso.com internet address = 192.168.255.011mail2.contoso.com internet address = 192.168.255.012mail3.contoso.com internet address = 192.168.255.013
How to use Nslookup to verify DNS configuration