Nslookup: command not found error on RHEL/CentOS 7
During linux installation I selected "minimal" option:

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
add a comment |
During linux installation I selected "minimal" option:

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
3
Have you tried installing thebind-utilspackage, which includes thenslookupbinary?
– Wieland
Oct 25 '14 at 16:26
add a comment |
During linux installation I selected "minimal" option:

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
During linux installation I selected "minimal" option:

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
centos rhel yum
asked Oct 25 '14 at 16:17
Anthony AnanichAnthony Ananich
3,19942140
3,19942140
3
Have you tried installing thebind-utilspackage, which includes thenslookupbinary?
– Wieland
Oct 25 '14 at 16:26
add a comment |
3
Have you tried installing thebind-utilspackage, which includes thenslookupbinary?
– 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
add a comment |
2 Answers
2
active
oldest
votes
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'
7
Or if you don't know where the command should live,*/nslookup.
– geedoubleya
Oct 25 '14 at 16:48
I getpackage bind-utils not found
– Black
Jun 3 '16 at 6:30
6
@Black If you are usingubuntu, useapt-get install dnsutils -yinstead.
– cizixs
Mar 28 '17 at 9:40
Also for Archdnsutils
– JoKeR
Jan 28 at 13:27
add a comment |
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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'
7
Or if you don't know where the command should live,*/nslookup.
– geedoubleya
Oct 25 '14 at 16:48
I getpackage bind-utils not found
– Black
Jun 3 '16 at 6:30
6
@Black If you are usingubuntu, useapt-get install dnsutils -yinstead.
– cizixs
Mar 28 '17 at 9:40
Also for Archdnsutils
– JoKeR
Jan 28 at 13:27
add a comment |
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'
7
Or if you don't know where the command should live,*/nslookup.
– geedoubleya
Oct 25 '14 at 16:48
I getpackage bind-utils not found
– Black
Jun 3 '16 at 6:30
6
@Black If you are usingubuntu, useapt-get install dnsutils -yinstead.
– cizixs
Mar 28 '17 at 9:40
Also for Archdnsutils
– JoKeR
Jan 28 at 13:27
add a comment |
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'
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'
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 getpackage bind-utils not found
– Black
Jun 3 '16 at 6:30
6
@Black If you are usingubuntu, useapt-get install dnsutils -yinstead.
– cizixs
Mar 28 '17 at 9:40
Also for Archdnsutils
– JoKeR
Jan 28 at 13:27
add a comment |
7
Or if you don't know where the command should live,*/nslookup.
– geedoubleya
Oct 25 '14 at 16:48
I getpackage bind-utils not found
– Black
Jun 3 '16 at 6:30
6
@Black If you are usingubuntu, useapt-get install dnsutils -yinstead.
– cizixs
Mar 28 '17 at 9:40
Also for Archdnsutils
– 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
add a comment |
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
add a comment |
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
add a comment |
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
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
answered Jan 28 at 15:48
f4d0f4d0
1011
1011
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
3
Have you tried installing the
bind-utilspackage, which includes thenslookupbinary?– Wieland
Oct 25 '14 at 16:26