Debian, dig

From Andreida
Revision as of 11:32, 20 April 2016 by Andreas (talk | contribs) (Created page with "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 ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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).