One of my new kids on the block asked me a question tonight; “Jermal, how do I get the mx record of a domain?”

To retrieve mx record information we need to use a tool called nslookup which is available in Windows and Linux

The quick syntax use is

nslookup [-option] [hostname] [server]

 

Example of its usage

nslookup -type=mx jermsmit.com 8.8.4.4

And what it looks like in

Linux

Windows