Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
dig [2015/11/24 13:57]
steve
dig [2017/07/05 19:42]
steve
Line 4: Line 4:
  
   * [[http://​alvinalexander.com/​linux-unix/​dig-commands-examples-tcp-ip-mx-record-dns|dig commands and examples]]   * [[http://​alvinalexander.com/​linux-unix/​dig-commands-examples-tcp-ip-mx-record-dns|dig commands and examples]]
 +
 +== Set defaults ==
 +
 +You can use ''​.digrc''​ and store the same command line options in there to use as defaults.
 +
 +Here, query Google'​s DNS server for lookups:
 +
 +<​code>​
 +@8.8.8.8
 +</​code>​
 +
 +Enable short output for all commands:
 +
 +<​code>​
 ++short
 +</​code>​
  
 == Lookup DNS records using nameservers == == Lookup DNS records using nameservers ==
Line 60: Line 76:
 <​code>​ <​code>​
 dig ANY +noall +answer domain.com dig ANY +noall +answer domain.com
 +</​code>​
 +
 +== Reverse DNS lookups ==
 +
 +<​code>​
 +dig -x 208.111.40.179
 </​code>​ </​code>​