How to Use Nslookup to Verify DNS Configuration
Tópico modificado em: 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 Exchange 2003 on Windows 2000 servers.
Before You Begin
Before you perform the procedure in this topic, read Verifying DNS Design and Configuration.
How to use Nslookup to verify DNS configuration
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:
Default Server: pdc.corp.example.com
> server 10.255.255.255
Default Server: dns1.example.com
> set q=mx
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.