↑ ↓ select, Enter open, Esc close

Look up the MX records of a domain

Adjust the values, the command updates live
user@server
dig +short example.com MX

Lists the responsible mail servers with their priority, lower numbers are tried first. Useful after migrations or provider changes to check whether incoming mail reaches the right server. The target name of an MX record must have its own A or AAAA record, a CNAME is not allowed there.

Also searched as

  • which mail server handles my domain
  • check mx record
  • emails not arriving after migration

Related one-liners

All in DNS

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.