CMD: Determine the Mail Server for Any Domain

Contributor Icon Contributed by David Kirk     
Tag Icon Tagged: Windows  

Quick little way to find the mail server for any known domain.


People are often curious what the mail server is for a given domain. Here’s a quick way to find out…

    1. Click Start
    2. Click Run
    3. Type cmd in the textbox and hit enter
    4. In the command line type nslookup
    5. Enter set type = mx
    6. Enter the name of the domain you want to look up
    7. When you are done type exit

Here’s an example looking up Microsoft’s mail server. You can see that microsoft’s mail servers are named maila, mailb, and mailc.

C:\Documents and Settings\Tech-Recipes>nslookup
*** Can't find server name for address 192.168.0.1: Non-existent domain
*** Default servers are not available
Default Server: UnKnown
Address: 192.168.0.1

> set type=mx
> microsoft.com
Server: UnKnown
Address: 192.168.0.1

Non-authoritative answer:
microsoft.com MX preference = 10, mail exchanger = maila.microsoft.com
microsoft.com MX preference = 10, mail exchanger = mailb.microsoft.com
microsoft.com MX preference = 10, mail exchanger = mailc.microsoft.com
>

 

3 Comments -


  1. Anonymous said on June 25, 2010

    I guess this can come handy. Thanks for posting it. I’ll try it out with Google. Do you think I’ll make my computer freeze?
    Sandra @ VPS Servers

  2. Umm Roomy said on February 4, 2011

    hi
    how to identify the domain mail server?
    for a example ‘www.example.com’ this is one of the company wevsite.
    in this company empleeys have a mail address.
    so how to identify the that emltoyee login mail?

  3. Ran said on September 20, 2011

    Thanks for the info…This help a lot

 

RSS feed for comments on this post. TrackBack URL

Leave a comment -