Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

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

How to Use Nslookup to Verify DNS Configuration

Topic Last Modified: 2005-05-20


For Exchange Server to send Internet mail, the DNS servers that Exchange Server uses for your domain must be able to resolve external domain names. To verify that
your DNS servers can resolve external domain names, use the Nslookup tool (Nslookup.exe) if you are running Exchange2003 on Windows2000 servers.

Before You Begin


Before you perform the procedure in this topic, read Verifying DNS Design and Configuration.

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

How to Use Nslookup to Verify DNS Configuration

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

How to Use Nslookup to Verify DNS Configuration

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

You might also like