dog, the command-line DNS client

The MX record

The MX (mail exchange) record contains the name of the mail server responsible for the domain.


Here, we query for MX records of the domain The result is a record with the mail domain "some.mail.server." and priority 10.

$ dog MX
MX 1h00m00s   10 "some.mail.server."