How to Check MX record using Windows Command Prompt

MX record or mail exchanger record is a type of resource record in the Domain Name System (DNS) that specifies a mail server responsible for accepting email messages on behalf of a recipient’s domain, and a preference value used to prioritize mail delivery if multiple mail servers are available. The set of MX records of a domain name specifies how email should be routed with the Simple Mail Transfer Protocol. In this post i will show you how you can get MX record using nslookup tool. Nslookup is a network administration command-line administrative tool for testing, diagnosis and troubleshoot DNS servers issue.

Get MX record for bloggerbaru.com and labnol.org using nslookup command :

C:\>nslookup
Default Server:  google-public-dns-a.google.com
Address:  8.8.8.8

> set type=mx
> bloggerbaru.com
Server:  google-public-dns-a.google.com
Address:  8.8.8.8

Non-authoritative answer:
bloggerbaru.com MX preference = 0, mail exchanger = bloggerbaru.com
> labnol.org
Server:  google-public-dns-a.google.com
Address:  8.8.8.8

Non-authoritative answer:
labnol.org      MX preference = 0, mail exchanger = ASPMX.L.GOOGLE.COM
>

One Response

  1. Jeanice July 19, 2014

Leave a Reply