Professional Documents
Culture Documents
How To Use Nslookup To Verify DNS Configuration
How To Use Nslookup To Verify DNS Configuration
1 of 3
https://technet.microsoft.com/en-us/library/aa997324(d=printer,v=exchg.65).aspx
Procedure
How to use Nslookup to verify DNS configuration
1. At a command prompt, type Nslookup, and then press ENTER.
2. Type server<IP address>, where IP address is the IP address of your external DNS server.
3. Type set q=MX, and then press ENTER.
4. 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.
Example
The following example shows how the DNS server for example.com resolves the IP address of the external domain contoso.com:
10/5/2016 11:15 AM
2 of 3
https://technet.microsoft.com/en-us/library/aa997324(d=printer,v=exchg.65).aspx
C:\> nslookup
Default Server: pdc.corp.example.com
Address: 192.168.6.13
> server 10.255.255.255
Default Server: dns1.example.com
Address: 10.255.255.255
> set q=mx
> contoso.com.
Server: dns1.example.com
Address: 192.168.10.10
contoso.com MX preference = 10, mail exchanger = mail1.contoso.com
contoso.com MX preference = 10, mail exchanger = mail2.contoso.com
contoso.com MX preference = 10, mail exchanger = mail3.contoso.com
mail1.contoso.com internet address = 192.168.255.011
mail2.contoso.com internet address = 192.168.255.012
mail3.contoso.com internet address = 192.168.255.013
In this example, the preconfigured DNS server is behind a proxy server. Therefore, an external or Internet DNS server with a known IP address of 10.255.255.255 was
used to perform the query. Next, the query type was set to MX to locate the mail exchangers for contoso.com. In this example, three SMTP servers are equally
balanced, each with its own IP address.
10/5/2016 11:15 AM
3 of 3
https://technet.microsoft.com/en-us/library/aa997324(d=printer,v=exchg.65).aspx
Community Additions
2016 Microsoft
10/5/2016 11:15 AM