Nslookup: command not found error on RHEL/CentOS 7












48















During linux installation I selected "minimal" option:



enter image description here



When I went to run the nslookup command to look up an IP address I got the error message nslookup: command not found as shown in the example below.



$ nslookup www.google.com
bash: nslookup: command not found









share|improve this question


















  • 3





    Have you tried installing the bind-utils package, which includes the nslookup binary?

    – Wieland
    Oct 25 '14 at 16:26
















48















During linux installation I selected "minimal" option:



enter image description here



When I went to run the nslookup command to look up an IP address I got the error message nslookup: command not found as shown in the example below.



$ nslookup www.google.com
bash: nslookup: command not found









share|improve this question


















  • 3





    Have you tried installing the bind-utils package, which includes the nslookup binary?

    – Wieland
    Oct 25 '14 at 16:26














48












48








48


6






During linux installation I selected "minimal" option:



enter image description here



When I went to run the nslookup command to look up an IP address I got the error message nslookup: command not found as shown in the example below.



$ nslookup www.google.com
bash: nslookup: command not found









share|improve this question














During linux installation I selected "minimal" option:



enter image description here



When I went to run the nslookup command to look up an IP address I got the error message nslookup: command not found as shown in the example below.



$ nslookup www.google.com
bash: nslookup: command not found






centos rhel yum






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Oct 25 '14 at 16:17









Anthony AnanichAnthony Ananich

3,19942140




3,19942140








  • 3





    Have you tried installing the bind-utils package, which includes the nslookup binary?

    – Wieland
    Oct 25 '14 at 16:26














  • 3





    Have you tried installing the bind-utils package, which includes the nslookup binary?

    – Wieland
    Oct 25 '14 at 16:26








3




3





Have you tried installing the bind-utils package, which includes the nslookup binary?

– Wieland
Oct 25 '14 at 16:26





Have you tried installing the bind-utils package, which includes the nslookup binary?

– Wieland
Oct 25 '14 at 16:26










2 Answers
2






active

oldest

votes


















98














The minimal install likely did not come with the bind-utils package, which I believe contains nslookup.



You can install bind-utils with:



sudo yum install bind-utils


In general, you can search for what package provides a command using the yum provides command:



sudo yum provides '*bin/nslookup'





share|improve this answer





















  • 7





    Or if you don't know where the command should live, */nslookup.

    – geedoubleya
    Oct 25 '14 at 16:48











  • I get package bind-utils not found

    – Black
    Jun 3 '16 at 6:30






  • 6





    @Black If you are using ubuntu, use apt-get install dnsutils -y instead.

    – cizixs
    Mar 28 '17 at 9:40











  • Also for Arch dnsutils

    – JoKeR
    Jan 28 at 13:27



















0














For those using DEBIAN, the package to use is dnsutils and the installation process should be, initiated with:



sudo apt-get install dnsutils -y


According to other users it is the same for Ubuntu






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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    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%2f164210%2fnslookup-command-not-found-error-on-rhel-centos-7%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    98














    The minimal install likely did not come with the bind-utils package, which I believe contains nslookup.



    You can install bind-utils with:



    sudo yum install bind-utils


    In general, you can search for what package provides a command using the yum provides command:



    sudo yum provides '*bin/nslookup'





    share|improve this answer





















    • 7





      Or if you don't know where the command should live, */nslookup.

      – geedoubleya
      Oct 25 '14 at 16:48











    • I get package bind-utils not found

      – Black
      Jun 3 '16 at 6:30






    • 6





      @Black If you are using ubuntu, use apt-get install dnsutils -y instead.

      – cizixs
      Mar 28 '17 at 9:40











    • Also for Arch dnsutils

      – JoKeR
      Jan 28 at 13:27
















    98














    The minimal install likely did not come with the bind-utils package, which I believe contains nslookup.



    You can install bind-utils with:



    sudo yum install bind-utils


    In general, you can search for what package provides a command using the yum provides command:



    sudo yum provides '*bin/nslookup'





    share|improve this answer





















    • 7





      Or if you don't know where the command should live, */nslookup.

      – geedoubleya
      Oct 25 '14 at 16:48











    • I get package bind-utils not found

      – Black
      Jun 3 '16 at 6:30






    • 6





      @Black If you are using ubuntu, use apt-get install dnsutils -y instead.

      – cizixs
      Mar 28 '17 at 9:40











    • Also for Arch dnsutils

      – JoKeR
      Jan 28 at 13:27














    98












    98








    98







    The minimal install likely did not come with the bind-utils package, which I believe contains nslookup.



    You can install bind-utils with:



    sudo yum install bind-utils


    In general, you can search for what package provides a command using the yum provides command:



    sudo yum provides '*bin/nslookup'





    share|improve this answer















    The minimal install likely did not come with the bind-utils package, which I believe contains nslookup.



    You can install bind-utils with:



    sudo yum install bind-utils


    In general, you can search for what package provides a command using the yum provides command:



    sudo yum provides '*bin/nslookup'






    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Apr 4 '15 at 22:09









    Franklin Piat

    1,8841828




    1,8841828










    answered Oct 25 '14 at 16:24









    Steven DSteven D

    32.4k797108




    32.4k797108








    • 7





      Or if you don't know where the command should live, */nslookup.

      – geedoubleya
      Oct 25 '14 at 16:48











    • I get package bind-utils not found

      – Black
      Jun 3 '16 at 6:30






    • 6





      @Black If you are using ubuntu, use apt-get install dnsutils -y instead.

      – cizixs
      Mar 28 '17 at 9:40











    • Also for Arch dnsutils

      – JoKeR
      Jan 28 at 13:27














    • 7





      Or if you don't know where the command should live, */nslookup.

      – geedoubleya
      Oct 25 '14 at 16:48











    • I get package bind-utils not found

      – Black
      Jun 3 '16 at 6:30






    • 6





      @Black If you are using ubuntu, use apt-get install dnsutils -y instead.

      – cizixs
      Mar 28 '17 at 9:40











    • Also for Arch dnsutils

      – JoKeR
      Jan 28 at 13:27








    7




    7





    Or if you don't know where the command should live, */nslookup.

    – geedoubleya
    Oct 25 '14 at 16:48





    Or if you don't know where the command should live, */nslookup.

    – geedoubleya
    Oct 25 '14 at 16:48













    I get package bind-utils not found

    – Black
    Jun 3 '16 at 6:30





    I get package bind-utils not found

    – Black
    Jun 3 '16 at 6:30




    6




    6





    @Black If you are using ubuntu, use apt-get install dnsutils -y instead.

    – cizixs
    Mar 28 '17 at 9:40





    @Black If you are using ubuntu, use apt-get install dnsutils -y instead.

    – cizixs
    Mar 28 '17 at 9:40













    Also for Arch dnsutils

    – JoKeR
    Jan 28 at 13:27





    Also for Arch dnsutils

    – JoKeR
    Jan 28 at 13:27













    0














    For those using DEBIAN, the package to use is dnsutils and the installation process should be, initiated with:



    sudo apt-get install dnsutils -y


    According to other users it is the same for Ubuntu






    share|improve this answer




























      0














      For those using DEBIAN, the package to use is dnsutils and the installation process should be, initiated with:



      sudo apt-get install dnsutils -y


      According to other users it is the same for Ubuntu






      share|improve this answer


























        0












        0








        0







        For those using DEBIAN, the package to use is dnsutils and the installation process should be, initiated with:



        sudo apt-get install dnsutils -y


        According to other users it is the same for Ubuntu






        share|improve this answer













        For those using DEBIAN, the package to use is dnsutils and the installation process should be, initiated with:



        sudo apt-get install dnsutils -y


        According to other users it is the same for Ubuntu







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 28 at 15:48









        f4d0f4d0

        1011




        1011






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f164210%2fnslookup-command-not-found-error-on-rhel-centos-7%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to make a Squid Proxy server?

            第一次世界大戦

            Touch on Surface Book