Network Administration: Mail Server Location

If you’re having trouble delivering mail to someone, you can use nslookup to determine the IP address of the user’s mail server. Then, you can use the ping command to see whether you can contact the user’s mail server. If not, you can use the tracert command to find out where the communication breaks down.

To find a user’s mail server, start nslookup and enter the command set type=MX. Then, enter the domain portion of the user’s e-mail address. For example, if the user’s address is, enter nslookup will display the MX (Mail eXchanger) information for the domain, like this:

Default Server:
> set type=mx
Address:  MX preference = 50, mail exchanger =  nameserver =  nameserver =   internet address =  internet address =

Here, you can see that the name of the mail server for the domain is