Home > linux > nslookup missing on CentOS

nslookup missing on CentOS

September 13th, 2010

If nslookup fails on CentOS, you may need to install bind utilities:[centos@livecd ~]$ nslookup google.com
bash: nslookup: command not found

[centos@livecd ~]$ yum search bind-utils
Loaded plugins: fastestmirror
============================= Matched: bind-utils ==============================
bind-utils.i386 : Utilities for querying DNS name servers.
caching-nameserver.i386 : Default BIND configuration files for a caching
: nameserver

[centos@livecd ~]$ su
[root@livecd centos]# yum install bind-utils

[root@livecd centos]# yum install bind-utils
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirrors.manchester.icecolo.com
* base: mirrors.manchester.icecolo.com
* extras: mirrors.manchester.icecolo.com
* updates: mirrors.manchester.icecolo.com
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package bind-utils.i386 30:9.3.6-4.P1.el5_4.2 set to be updated
–> Processing Dependency: bind-libs = 30:9.3.6-4.P1.el5_4.2 for package: bind-utils
–> Processing Dependency: libdns.so.26 for package: bind-utils
–> Processing Dependency: libisccfg.so.1 for package: bind-utils
–> Processing Dependency: libbind9.so.0 for package: bind-utils
–> Processing Dependency: liblwres.so.9 for package: bind-utils
–> Processing Dependency: libisc.so.15 for package: bind-utils
–> Processing Dependency: libisccc.so.0 for package: bind-utils
–> Running transaction check
—> Package bind-libs.i386 30:9.3.6-4.P1.el5_4.2 set to be updated
–> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package           Arch        Version                        Repository   Size
================================================================================
Installing:
bind-utils        i386        30:9.3.6-4.P1.el5_4.2          base        170 k
Installing for dependencies:
bind-libs         i386        30:9.3.6-4.P1.el5_4.2          base        857 k

Transaction Summary
================================================================================
Install       2 Package(s)
Upgrade       0 Package(s)

Total download size: 1.0 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): bind-utils-9.3.6-4.P1.el5_4.2.i386.rpm            | 170 kB     00:00
(2/2): bind-libs-9.3.6-4.P1.el5_4.2.i386.rpm             | 857 kB     00:01
——————————————————————————–
Total                                           363 kB/s | 1.0 MB     00:02
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897
base/gpgkey                                              | 1.5 kB     00:00
Importing GPG key 0xE8562897 “CentOS-5 Key (CentOS 5 Official Signing Key) <centos-5-key@centos.org>” from /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing     : bind-libs                                                1/2
Installing     : bind-utils                                               2/2

Installed:
bind-utils.i386 30:9.3.6-4.P1.el5_4.2

Dependency Installed:
bind-libs.i386 30:9.3.6-4.P1.el5_4.2

Complete!
[root@livecd centos]#

NOW TRY AGAIN:

[root@livecd centos]# nslookup google.com
Server:         192.168.132.2
Address:        192.168.132.2#53

Name:   google.com.localdomain
Address: 74.125.19.104

[root@livecd centos]#

Categories: linux Tags: ,
Comments are closed.