Warning: Invalid argument supplied for foreach() in /home/techrecipes/public_html/wp-content/themes/techrecipes/header.php on line 77

CMD: Determine the Mail Server for Any Domain

   Posted by David Kirk in Windows

People are often curious to know the mail server for a given domain. This tutorial describes a quick way to find out.

Use the following steps to determine the mail server for any known domain:

    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 is an example which uses the steps above to find Microsoft’s mail servers. 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
>

 

About David Kirk

David Kirk is one of the original founders of tech-recipes and is currently serving as editor-in-chief. Not only has he been crafting tutorials for over ten years, but in his other life he also enjoys taking care of critically ill patients as an ICU physician.
View more articles by David Kirk

The Conversation

Follow the reactions below and share your own thoughts.

  • Anonymous

    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

  • Umm Roomy

    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?

  • Ran

    Thanks for the info…This help a lot