Query for a mail server (MX record) of the domain, showing details of the transaction

nslookup

nslookup -type=MX -debug {{example.com}}

click the source code to copy install nslookup on any operating system with command-not-found.com