Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
dig [2015/12/16 11:43] steve |
dig [2017/07/05 19:41] 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> | ||
- | |||
- | == Set defaults == | ||
- | |||
- | You can use ''.digrc'' and store the same command line options in there to use as defaults | ||
- | |||
- | <code> | ||
- | @8.8.8.8 | ||
</code> | </code> |