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.

Example

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

$ dog MX mx-example.lookup.dog
MX mx-example.lookup.dog. 1h00m00s   10 "some.mail.server."