Monday 13 April 2015

Cent OS 6.5 issue" -bash: /usr/bin/nslookup: No such file or directory"

Today I installed Cent OS 6.5 with minimal packages so that installation will get complete very soon.
After completion of installation of os I need to check some DNS base issue on that.
To troubleshoot that issue I need to run command "nslookp" command
But when I tried to run nslookup command it was not working


[root@Test1 ~]# nslookup google.com
-bash: nslookup: command not found
[root@Test1 ~]# /usr/bin/nslookup google.com
-bash: /usr/bin/nslookup: No such file or directory
[root@Test1 ~]#

So I got confused what to for this basic command, which rpm I should install so that nslookup command will work

Then I configure yum repository and installed bind-utils rpm.

[root@Test1 ~]# yum install bind-utils

After installation nslookup command worked.

[root@vcs1 rhel6_x86_64]# rpm -qi bind-utils
Name        : bind-utils                   Relocations: (not relocatable)
Version     : 9.8.2                             Vendor: CentOS
Release     : 0.17.rc1.el6_4.6              Build Date: Tue 27 Aug 2013 09:25:53 PM IST
Install Date: Mon 13 Apr 2015 06:24:31 PM IST      Build Host: c6b9.bsys.dev.centos.org
Group       : Applications/System           Source RPM: bind-9.8.2-0.17.rc1.el6_4.6.src.rpm
Size        : 448511                           License: ISC
Signature   : RSA/SHA1, Tue 27 Aug 2013 11:26:23 PM IST, Key ID 0946fca2c105b9de
Packager    : CentOS BuildSystem <http://bugs.centos.org>
URL         : http://www.isc.org/products/BIND/
Summary     : Utilities for querying DNS name servers
Description :
Bind-utils contains a collection of utilities for querying DNS (Domain
Name System) name servers to find out information about Internet
hosts. These tools will provide you with the IP addresses for given
host names, as well as other information about registered domains and
network addresses.

You should install bind-utils if you need to get information from DNS name
servers.


I hope if you face same issue on CentOS this post will helpful to you resolve the issue.