{"id":31,"date":"2014-05-14T15:53:54","date_gmt":"2014-05-14T05:53:54","guid":{"rendered":"http:\/\/thewanderingsysadmin.net\/?p=31"},"modified":"2014-05-14T15:53:54","modified_gmt":"2014-05-14T05:53:54","slug":"installing-dig-on-a-centos-linux-server-with-yum","status":"publish","type":"post","link":"https:\/\/thewanderingsysadmin.net\/?p=31","title":{"rendered":"Installing dig on a Centos Linux Server with Yum"},"content":{"rendered":"<p>Installing dig on a CentOS server is pretty easy, using yum. \u00a0 Dig is part of the bind utils package, so you will want to install bind-utils.<\/p>\n<p>Basically<\/p>\n<pre class=\"lang:sh decode:true \">[root@dev ~]# yum install bind-utils<\/pre>\n<p>Installation will look something like the following:<\/p>\n<pre class=\"lang:default decode:true\">[root@dev ~]# yum install bind-utils\r\nLoaded plugins: fastestmirror, priorities, replace\r\nLoading mirror speeds from cached hostfile\r\n * base: centos.aol.in\r\n * epel: mirror.nus.edu.sg\r\n * extras: centos.aol.in\r\n * remi: remi.check-update.co.uk\r\n * remi-test: remi.check-update.co.uk\r\n * rpmforge: ftp.kddilabs.jp\r\n * rpmforge-extras: ftp.kddilabs.jp\r\n * updates: centos.aol.in\r\n * webtatic: us-east.repo.webtatic.com\r\nSetting up Install Process\r\nResolving Dependencies\r\n--&gt; Running transaction check\r\n---&gt; Package bind-utils.x86_64 32:9.8.2-0.23.rc1.el6_5.1 will be installed\r\n--&gt; Processing Dependency: bind-libs = 32:9.8.2-0.23.rc1.el6_5.1 for package: 32:bind-utils-9.8.2-0.23.rc1.el6_5.1.x86_64\r\n--&gt; Processing Dependency: liblwres.so.80()(64bit) for package: 32:bind-utils-9.8.2-0.23.rc1.el6_5.1.x86_64\r\n--&gt; Processing Dependency: libisccfg.so.82()(64bit) for package: 32:bind-utils-9.8.2-0.23.rc1.el6_5.1.x86_64\r\n--&gt; Processing Dependency: libisccc.so.80()(64bit) for package: 32:bind-utils-9.8.2-0.23.rc1.el6_5.1.x86_64\r\n--&gt; Processing Dependency: libisc.so.83()(64bit) for package: 32:bind-utils-9.8.2-0.23.rc1.el6_5.1.x86_64\r\n--&gt; Processing Dependency: libdns.so.81()(64bit) for package: 32:bind-utils-9.8.2-0.23.rc1.el6_5.1.x86_64\r\n--&gt; Processing Dependency: libbind9.so.80()(64bit) for package: 32:bind-utils-9.8.2-0.23.rc1.el6_5.1.x86_64\r\n--&gt; Running transaction check\r\n---&gt; Package bind-libs.x86_64 32:9.8.2-0.23.rc1.el6_5.1 will be installed\r\n--&gt; Finished Dependency Resolution\r\n\r\nDependencies Resolved\r\n\r\n========================================================================================================================================================================\r\n Package                               Arch                              Version                                               Repository                          Size\r\n========================================================================================================================================================================\r\nInstalling:\r\n bind-utils                            x86_64                            32:9.8.2-0.23.rc1.el6_5.1                             updates                            182 k\r\nInstalling for dependencies:\r\n bind-libs                             x86_64                            32:9.8.2-0.23.rc1.el6_5.1                             updates                            879 k\r\n\r\nTransaction Summary\r\n========================================================================================================================================================================\r\nInstall       2 Package(s)\r\n\r\nTotal download size: 1.0 M\r\nInstalled size: 2.6 M\r\nIs this ok [y\/N]: y\r\nDownloading Packages:\r\n(1\/2): bind-libs-9.8.2-0.23.rc1.el6_5.1.x86_64.rpm                                                                                               | 879 kB     00:04\r\n(2\/2): bind-utils-9.8.2-0.23.rc1.el6_5.1.x86_64.rpm                                                                                              | 182 kB     00:01\r\n------------------------------------------------------------------------------------------------------------------------------------------------------------------------\r\nTotal                                                                                                                                   124 kB\/s | 1.0 MB     00:08\r\nRunning rpm_check_debug\r\nRunning Transaction Test\r\nTransaction Test Succeeded\r\nRunning Transaction\r\n  Installing : 32:bind-libs-9.8.2-0.23.rc1.el6_5.1.x86_64                                                                                                           1\/2\r\n  Installing : 32:bind-utils-9.8.2-0.23.rc1.el6_5.1.x86_64                                                                                                          2\/2\r\n  Verifying  : 32:bind-libs-9.8.2-0.23.rc1.el6_5.1.x86_64                                                                                                           1\/2\r\n  Verifying  : 32:bind-utils-9.8.2-0.23.rc1.el6_5.1.x86_64                                                                                                          2\/2\r\n\r\nInstalled:\r\n  bind-utils.x86_64 32:9.8.2-0.23.rc1.el6_5.1\r\n\r\nDependency Installed:\r\n  bind-libs.x86_64 32:9.8.2-0.23.rc1.el6_5.1\r\n\r\nComplete!\r\n[root@dev ~]#<\/pre>\n<p>And you&#8217;re now ready to use dig!<\/p>\n<pre class=\"lang:default decode:true \">[root@dev ~]# dig google.com NS\r\n\r\n; &lt;&lt;&gt;&gt; DiG 9.8.2rc1-RedHat-9.8.2-0.23.rc1.el6_5.1 &lt;&lt;&gt;&gt; google.com NS\r\n;; global options: +cmd\r\n;; Got answer:\r\n;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 25165\r\n;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 4\r\n\r\n;; QUESTION SECTION:\r\n;google.com.                    IN      NS\r\n\r\n;; ANSWER SECTION:\r\ngoogle.com.             161287  IN      NS      ns2.google.com.\r\ngoogle.com.             161287  IN      NS      ns1.google.com.\r\ngoogle.com.             161287  IN      NS      ns3.google.com.\r\ngoogle.com.             161287  IN      NS      ns4.google.com.\r\n\r\n;; ADDITIONAL SECTION:\r\nns2.google.com.         74887   IN      A       216.239.34.10\r\nns1.google.com.         74887   IN      A       216.239.32.10\r\nns3.google.com.         74887   IN      A       216.239.36.10\r\nns4.google.com.         74887   IN      A       216.239.38.10<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installing dig on a CentOS server is pretty easy, using yum. \u00a0 Dig is part of the bind utils package, so you will want to install bind-utils. Basically [root@dev ~]# yum install bind-utils Installation will look something like the following: [root@dev ~]# yum install bind-utils Loaded plugins: fastestmirror, priorities, replace Loading mirror speeds from cached [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[7],"tags":[],"class_list":["post-31","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/thewanderingsysadmin.net\/index.php?rest_route=\/wp\/v2\/posts\/31"}],"collection":[{"href":"https:\/\/thewanderingsysadmin.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thewanderingsysadmin.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thewanderingsysadmin.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thewanderingsysadmin.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=31"}],"version-history":[{"count":2,"href":"https:\/\/thewanderingsysadmin.net\/index.php?rest_route=\/wp\/v2\/posts\/31\/revisions"}],"predecessor-version":[{"id":33,"href":"https:\/\/thewanderingsysadmin.net\/index.php?rest_route=\/wp\/v2\/posts\/31\/revisions\/33"}],"wp:attachment":[{"href":"https:\/\/thewanderingsysadmin.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=31"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thewanderingsysadmin.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=31"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thewanderingsysadmin.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}