Debian, dig

From Andreida

create in your home directory (/home/yourname) the file .digrc

+noall +answer -t ANY

now you get nice output

root@yourServer:~# dig amazon.de
amazon.de.              620     IN      A       176.32.108.185
amazon.de.              620     IN      A       178.236.7.219
amazon.de.              620     IN      A       178.236.6.250
amazon.de.              6983    IN      MX      10 smtp-fw-2101.amazon.com.
amazon.de.              6983    IN      MX      10 smtp-fw-4101.amazon.com.
amazon.de.              6983    IN      MX      10 smtp-fw-33001.amazon.com.
amazon.de.              6983    IN      MX      10 smtp-fw-31001.amazon.com.
amazon.de.              6983    IN      MX      10 smtp-fw-9101.amazon.com.

If you have to check for multiple domains, for example after transferring multiple domains to another provider, create a text file with one line per domain and call

dig -f yourfile.txt

Keep the text file name very short, because autocomplete does not work here (at least for me).