{"id":2027,"date":"2018-06-22T16:34:11","date_gmt":"2018-06-22T16:34:11","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=2027"},"modified":"2021-01-13T21:11:13","modified_gmt":"2021-01-14T03:11:13","slug":"install-dig-on-ubuntu-debian-or-kali-linux","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/install-dig-on-ubuntu-debian-or-kali-linux\/","title":{"rendered":"Install dig on Ubuntu, Debian or Kali Linux"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2021\/01\/image-4.png\"><img loading=\"lazy\" decoding=\"async\" width=\"690\" height=\"281\" src=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2021\/01\/image-4.png\" alt=\"install dig\" class=\"wp-image-3831\" srcset=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2021\/01\/image-4.png 690w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2021\/01\/image-4-300x122.png 300w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2021\/01\/image-4-500x204.png 500w\" sizes=\"auto, (max-width: 690px) 100vw, 690px\" \/><\/a><figcaption>Help options for dig<\/figcaption><\/figure>\n\n\n<p><br \/>Dig is a DNS lookup utility.\u00a0 It is included in most Linux distributions by default, but if it isn&#8217;t you can easily install dig with the following command.<\/p>\n<p>The dig utility is apart of the dnsutils package<\/p>\n<pre>sudo apt-get install dnsutils -y<\/pre>\n<p>After it is installed, we can verify that it is working with<\/p>\n<pre>dig -v<\/pre>\n\n\n<p>For more information on how to use dig, refer to the following link.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.howtogeek.com\/663056\/how-to-use-the-dig-command-on-linux\/\">https:\/\/www.howtogeek.com\/663056\/how-to-use-the-dig-command-on-linux\/<\/a><\/p>\n\n\n\n<p>The following is copied and pasted from the dig man page.<\/p>\n\n\n\n<pre><b>NAME<\/b>\n       dig - DNS lookup utility\n\n<b>SYNOPSIS<\/b>\n       <b>dig<\/b> [@server] [<b>-b<\/b> <u style=\"text-decoration-style:single\">address<\/u>] [<b>-c<\/b> <u style=\"text-decoration-style:single\">class<\/u>] [<b>-f<\/b> <u style=\"text-decoration-style:single\">filename<\/u>] [<b>-k<\/b> <u style=\"text-decoration-style:single\">filename<\/u>] [<b>-m<\/b>] [<b>-p<\/b> <u style=\"text-decoration-style:single\">port#<\/u>] [<b>-q<\/b> <u style=\"text-decoration-style:single\">name<\/u>]\n           [<b>-t<\/b> <u style=\"text-decoration-style:single\">type<\/u>] [<b>-v<\/b>] [<b>-x<\/b> <u style=\"text-decoration-style:single\">addr<\/u>] [<b>-y<\/b> <u style=\"text-decoration-style:single\">[hmac:]name:key<\/u>] [[<b>-4<\/b>] | [<b>-6<\/b>]] [name] [type] [class]\n           [queryopt...]\n\n       <b>dig<\/b> [<b>-h<\/b>]\n\n       <b>dig<\/b> [global-queryopt...] [query...]\n\n<b>DESCRIPTION<\/b>\n       <b>dig<\/b> is a flexible tool for interrogating DNS name servers. It performs DNS lookups and\n       displays the answers that are returned from the name server(s) that were queried. Most DNS\n       administrators use <b>dig<\/b> to troubleshoot DNS problems because of its flexibility, ease of use\n       and clarity of output. Other lookup tools tend to have less functionality than <b>dig<\/b>.\n\n       Although <b>dig<\/b> is normally used with command-line arguments, it also has a batch mode of\n       operation for reading lookup requests from a file. A brief summary of its command-line\n       arguments and options is printed when the <b>-h<\/b> option is given. Unlike earlier versions, the\n       BIND 9 implementation of <b>dig<\/b> allows multiple lookups to be issued from the command line.\n\n       Unless it is told to query a specific name server, <b>dig<\/b> will try each of the servers listed\n       in \/etc\/resolv.conf. If no usable server addresses are found, <b>dig<\/b> will send the query to the\n       local host.\n\n       When no command line arguments or options are given, <b>dig<\/b> will perform an NS query for &quot;.&quot;\n       (the root).\n\n       It is possible to set per-user defaults for <b>dig<\/b> via ${HOME}\/.digrc. This file is read and\n       any options in it are applied before the command line arguments. The <b>-r<\/b> option disables this\n       feature, for scripts that need predictable behaviour.\n\n       The IN and CH class names overlap with the IN and CH top level domain names. Either use the\n       <b>-t<\/b> and <b>-c<\/b> options to specify the type and class, use the <b>-q<\/b> the specify the domain name, or\n       use &quot;IN.&quot; and &quot;CH.&quot; when looking up these top level domains.\n\n<b>SIMPLE<\/b> <b>USAGE<\/b>\n       A typical invocation of <b>dig<\/b> looks like:\n\n            dig @server name type\n\n       where:\n\n       <b>server<\/b>\n           is the name or IP address of the name server to query. This can be an IPv4 address in\n           dotted-decimal notation or an IPv6 address in colon-delimited notation. When the\n           supplied <u style=\"text-decoration-style:single\">server<\/u> argument is a hostname, <b>dig<\/b> resolves that name before querying that name\n           server.\n\n           If no <u style=\"text-decoration-style:single\">server<\/u> argument is provided, <b>dig<\/b> consults \/etc\/resolv.conf; if an address is found\n           there, it queries the name server at that address. If either of the <b>-4<\/b> or <b>-6<\/b> options are\n           in use, then only addresses for the corresponding transport will be tried. If no usable\n           addresses are found, <b>dig<\/b> will send the query to the local host. The reply from the name\n           server that responds is displayed.\n\n       <b>name<\/b>\n           is the name of the resource record that is to be looked up.\n\n       <b>type<\/b>\n           indicates what type of query is required \u2014 ANY, A, MX, SIG, etc.  <u style=\"text-decoration-style:single\">type<\/u> can be any valid\n           query type. If no <u style=\"text-decoration-style:single\">type<\/u> argument is supplied, <b>dig<\/b> will perform a lookup for an A record.\n\n<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Dig is a DNS lookup utility.\u00a0 It is included in most Linux distributions by default, but if it isn&#8217;t you can easily install dig with the following command. The dig utility is apart of the dnsutils package sudo apt-get install &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/install-dig-on-ubuntu-debian-or-kali-linux\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,264,3,28],"tags":[322,467,51,468,277,417,268,7,49],"class_list":["post-2027","post","type-post","status-publish","format-standard","hentry","category-command-line","category-debian","category-linux","category-ubuntu","tag-apt","tag-apt-get","tag-debian","tag-dig","tag-dns","tag-install","tag-kali","tag-linux-2","tag-ubuntu-2"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2027","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=2027"}],"version-history":[{"count":2,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2027\/revisions"}],"predecessor-version":[{"id":3832,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2027\/revisions\/3832"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=2027"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=2027"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=2027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}