dnsmxip
dnsmxip fqdn
dnsmxip takes the given fqdn as domain name and employs a MX lookup for fqdn while evaluating for the retrieved MX host(s) the respective AAAA and A address(es).
On output, for each MX host its provided weight and the respective AAAA and A addresses (in perenthesis) are displayed on separate lines.
dnsmxip returns 0 and eventually 1 in case of DNS query errors.
dnscname(8), dnsip(8), dnsfq(8), dnsptr(8), dnstxt(8).