diff --git a/knowledge base/dig.md b/knowledge base/dig.md index 2777a46..4f2c862 100644 --- a/knowledge base/dig.md +++ b/knowledge base/dig.md @@ -1,17 +1,26 @@ # Dig -## Table of contents - 1. [TL;DR](#tldr) -1. [Sources](#sources) +1. [Further readings](#further-readings) + 1. [Sources](#sources) ## TL;DR +
+ Setup + ```sh # Installation. apt-get install 'dnsutils' yum install 'bind-utils' +``` +
+ +
+ Usage + +```sh # Perform a DNS lookup. dig 'google.com' dig 'google.com' 'A' @@ -45,13 +54,27 @@ dig '@8.8.8.8' 'google.com' dig 'google.com' 'ANY' ``` -## Sources +
+ +
+ Real world use cases + +```sh +dig +trace '@1.1.1.1' 'google.com' +``` + +
+ +## Further readings + +### Sources - [How to Use Linux dig Command (DNS Lookup)] - [Using dig +trace to Understand DNS Resolution from Start to Finish]