DNS query to find mail servers

To find which servers handle mail for a particular domain use dig:

# dig google.com MX
;; QUESTION SECTION:
;google.com.			IN	MX
 
;; ANSWER SECTION:
google.com.		561	IN	MX	100 google.com.s9a1.psmtp.com.
google.com.		561	IN	MX	100 google.com.s9a2.psmtp.com.
google.com.		561	IN	MX	10 smtp1.google.com.
google.com.		561	IN	MX	10 smtp2.google.com.
google.com.		561	IN	MX	10 smtp3.google.com.
google.com.		561	IN	MX	10 smtp4.google.com.

Share this post:

  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
Related posts:
  1. Send mail from the command line on Mac OSX
  2. Setting up an IPv6 Bind DNS Server on Linux
  3. Hotmail in your favourite mail client
  4. Google announces Google Chrome OS

Leave a Reply