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: 18.104.22.168 > set type=mx > bloggerbaru.com Server: google-public-dns-a.google.com Address: 22.214.171.124 Non-authoritative answer: bloggerbaru.com MX preference = 0, mail exchanger = bloggerbaru.com > labnol.org Server: google-public-dns-a.google.com Address: 126.96.36.199 Non-authoritative answer: labnol.org MX preference = 0, mail exchanger = ASPMX.L.GOOGLE.COM >