How to install dig on CentOS?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
76
down vote

favorite
8












I can't find the dig command on my new CentOS installation. I've tried yum install dig but it say it cannot find the package.



How do I install dig on CentOS?










share|improve this question



























    up vote
    76
    down vote

    favorite
    8












    I can't find the dig command on my new CentOS installation. I've tried yum install dig but it say it cannot find the package.



    How do I install dig on CentOS?










    share|improve this question

























      up vote
      76
      down vote

      favorite
      8









      up vote
      76
      down vote

      favorite
      8






      8





      I can't find the dig command on my new CentOS installation. I've tried yum install dig but it say it cannot find the package.



      How do I install dig on CentOS?










      share|improve this question















      I can't find the dig command on my new CentOS installation. I've tried yum install dig but it say it cannot find the package.



      How do I install dig on CentOS?







      yum centos






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 9 mins ago

























      asked Mar 27 '14 at 23:50









      Mikael Dúi Bolinder

      2,15731215




      2,15731215




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          107
          down vote



          accepted










          The dig command is a part of the BIND utilities so you need to install them. To install the BIND utilities, type the following:



          $ yum install bind-utils





          share|improve this answer


















          • 1




            thank you, this works in CentOS 7 as well..
            – Santosh Kumar A
            yesterday

















          up vote
          48
          down vote













          You have already provided the specific answer, but if you are looking for other executables or files to see what package they are installed with, utilize yum whatprovides *relative/path/to/file*, for example:



          $ yum whatprovides '*bin/dig'

          32:bind-utils-9.8.2-0.17.rc1.el6_4.6.x86_64 : Utilities for querying DNS name servers
          Repo : base
          Matched from:
          Filename : /usr/bin/dig
          ...


          From man yum:



          provides or whatprovides
          Is used to find out which package provides some feature or file. Just
          use a specific name or a file-glob-syntax wildcards to list the pack-
          ages available or installed that provide that feature or file.





          share|improve this answer






















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f121874%2fhow-to-install-dig-on-centos%23new-answer', 'question_page');

            );

            Post as a guest






























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            107
            down vote



            accepted










            The dig command is a part of the BIND utilities so you need to install them. To install the BIND utilities, type the following:



            $ yum install bind-utils





            share|improve this answer


















            • 1




              thank you, this works in CentOS 7 as well..
              – Santosh Kumar A
              yesterday














            up vote
            107
            down vote



            accepted










            The dig command is a part of the BIND utilities so you need to install them. To install the BIND utilities, type the following:



            $ yum install bind-utils





            share|improve this answer


















            • 1




              thank you, this works in CentOS 7 as well..
              – Santosh Kumar A
              yesterday












            up vote
            107
            down vote



            accepted







            up vote
            107
            down vote



            accepted






            The dig command is a part of the BIND utilities so you need to install them. To install the BIND utilities, type the following:



            $ yum install bind-utils





            share|improve this answer














            The dig command is a part of the BIND utilities so you need to install them. To install the BIND utilities, type the following:



            $ yum install bind-utils






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Sep 28 '14 at 1:54

























            answered Mar 27 '14 at 23:50









            Mikael Dúi Bolinder

            2,15731215




            2,15731215







            • 1




              thank you, this works in CentOS 7 as well..
              – Santosh Kumar A
              yesterday












            • 1




              thank you, this works in CentOS 7 as well..
              – Santosh Kumar A
              yesterday







            1




            1




            thank you, this works in CentOS 7 as well..
            – Santosh Kumar A
            yesterday




            thank you, this works in CentOS 7 as well..
            – Santosh Kumar A
            yesterday












            up vote
            48
            down vote













            You have already provided the specific answer, but if you are looking for other executables or files to see what package they are installed with, utilize yum whatprovides *relative/path/to/file*, for example:



            $ yum whatprovides '*bin/dig'

            32:bind-utils-9.8.2-0.17.rc1.el6_4.6.x86_64 : Utilities for querying DNS name servers
            Repo : base
            Matched from:
            Filename : /usr/bin/dig
            ...


            From man yum:



            provides or whatprovides
            Is used to find out which package provides some feature or file. Just
            use a specific name or a file-glob-syntax wildcards to list the pack-
            ages available or installed that provide that feature or file.





            share|improve this answer


























              up vote
              48
              down vote













              You have already provided the specific answer, but if you are looking for other executables or files to see what package they are installed with, utilize yum whatprovides *relative/path/to/file*, for example:



              $ yum whatprovides '*bin/dig'

              32:bind-utils-9.8.2-0.17.rc1.el6_4.6.x86_64 : Utilities for querying DNS name servers
              Repo : base
              Matched from:
              Filename : /usr/bin/dig
              ...


              From man yum:



              provides or whatprovides
              Is used to find out which package provides some feature or file. Just
              use a specific name or a file-glob-syntax wildcards to list the pack-
              ages available or installed that provide that feature or file.





              share|improve this answer
























                up vote
                48
                down vote










                up vote
                48
                down vote









                You have already provided the specific answer, but if you are looking for other executables or files to see what package they are installed with, utilize yum whatprovides *relative/path/to/file*, for example:



                $ yum whatprovides '*bin/dig'

                32:bind-utils-9.8.2-0.17.rc1.el6_4.6.x86_64 : Utilities for querying DNS name servers
                Repo : base
                Matched from:
                Filename : /usr/bin/dig
                ...


                From man yum:



                provides or whatprovides
                Is used to find out which package provides some feature or file. Just
                use a specific name or a file-glob-syntax wildcards to list the pack-
                ages available or installed that provide that feature or file.





                share|improve this answer














                You have already provided the specific answer, but if you are looking for other executables or files to see what package they are installed with, utilize yum whatprovides *relative/path/to/file*, for example:



                $ yum whatprovides '*bin/dig'

                32:bind-utils-9.8.2-0.17.rc1.el6_4.6.x86_64 : Utilities for querying DNS name servers
                Repo : base
                Matched from:
                Filename : /usr/bin/dig
                ...


                From man yum:



                provides or whatprovides
                Is used to find out which package provides some feature or file. Just
                use a specific name or a file-glob-syntax wildcards to list the pack-
                ages available or installed that provide that feature or file.






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Aug 2 '17 at 5:27









                Noam M

                4281415




                4281415










                answered Mar 28 '14 at 2:23









                Tony Cesaro

                61646




                61646



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f121874%2fhow-to-install-dig-on-centos%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Bahrain

                    Postfix configuration issue with fips on centos 7; mailgun relay