Combining dig +short command

view full story

http://serverfault.com – This command will show the output of MX record: dig @ns1.myname.com myname.com +short MX and this will output A record: dig @ns1.myname.com myname.com +short A My question is how to output both A and MX with +short in one output display? Thank you. UPDATE: Cakemox this is the output I receive: root@server1:~# dig +noall +answer @ns1.myname.com myname.com MX myname.com. 86400 IN MX 10 ASPMX2.GOOGLEMAIL.COM. myname.com. 86400 IN MX 10 ASPMX3.GOOGLEMAIL.COM. myname.com. 86400 IN MX 1 ASPMX.L.GOOGLE.COM. myname.com. 86400 IN (HowTos)