Lookup MX record via the command line

If you are looking for a fast way to find the mx record of a domain run this command from the command line

nslookup -querytype=mx yourdomain