Query the MX records type associated with a given domain name over TCP using explicit arguments

dog

  • DNS lookup utility.
    It has colorful output, supports DNS-over-TLS and DNS-over-HTTPS protocols, and can emit JSON.
    More information: <https://dns.lookup.dog>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

dog --query {{example.com}} --type MX --nameserver {{1.1.1.1}} --tcp

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