HanG321 Blog

How to use Nslookup to verify MX record configuration

How to use Nslookup to verify MX record 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 your domain, and then press ENTER. The MX record for the domain you entered should be displayed. If the MX record is not displayed, DNS is not configured properly.

Example

The example below shows how MX records appear for the fictitious domain, example.com.

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 172.31.01.01 was used to perform the query. Next, the query type was set to MX to locate the mail exchangers for example.com. In this example, five SMTP servers are equally balanced, each with its own IP address. However, your domain might only have a single entry, as seen in the following example: contoso.com MX preference = 10, mail exchanger = mailbox.contoso.com mailbox.contoso.com internet address = 10.57.22.3