dig和nslookup工具找不到

默认centos6.2最小化安装是没有dig跟nslookup

缺少两个包[我用的是X64]:

bind-libs-9.7.3-8.P3.el6_2.3.x86_64.rpm

bind-utils-9.7.3-8.P3.el6_2.3.x86_64.rpm

出现

-bash: dig: command not found

运行

yum –y install bind-utils

过程如下表

Dependencies Resolved

================================================================================
Package          Arch         Version                      Repository     Size
================================================================================
Installing:
bind-utils       x86_64       32:9.7.3-8.P3.el6_2.3        updates       179 k
Installing for dependencies:
bind-libs        x86_64       32:9.7.3-8.P3.el6_2.3        updates       841 k

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

Total download size: 1.0 M
Installed size: 2.5 M
Downloading Packages:
(1/2): bind-libs-9.7.3-8.P3.el6_2.3.x86_64.rpm           | 841 kB     00:03
(2/2): bind-utils-9.7.3-8.P3.el6_2.3.x86_64.rpm          | 179 kB     00:00
--------------------------------------------------------------------------------
Total                                           265 kB/s | 1.0 MB     00:03
Running rpm_check_debug
Running Transaction Test

结果

 

[root@localhost dnspod-sr]# dig

; <<>> DiG 9.7.3-P3-RedHat-9.7.3-8.P3.el6_2.3 <<>>
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59229
;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;.                              IN      NS

;; ANSWER SECTION:
.                       49366   IN      NS      i.root-servers.net.
.                       49366   IN      NS      a.root-servers.net.
.                       49366   IN      NS      l.root-servers.net.
.                       49366   IN      NS      c.root-servers.net.
.                       49366   IN      NS      m.root-servers.net.

你可能感兴趣的:(dig和nslookup工具找不到)