我无法nslookup
在 CentOS 7.2 中安装:
yum install nslookup
[root@localhost network-scripts]# yum install -y nslookup
added plugin:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.sunnyvision.com
* epel: my.mirrors.thegigabit.com
* extras: mirror.sunnyvision.com
* updates: mirrors.icidc.com
No available nslookup
答案1
nslookup
包含在bind-utils
包装中。
您应该使用以下命令来安装它:
# yum install bind-utils
答案2
您可以使用yum whatprovides nslookup
查看哪个包提供了它:
~$ yum whatprovides nslookup
Loaded plugins: fastestmirror
Determining fastest mirrors
.
.
32:bind-utils-9.11.4-9.P2.el7.x86_64 : Utilities for querying DNS name servers
Repo : base
Matched from:
Filename : /usr/bin/nslookup
32:bind-utils-9.9.4-74.el7_6.2.x86_64 : Utilities for querying DNS name servers
Repo : @updates
Matched from:
Filename : /usr/bin/nslookup
然后您可以使用 yum 安装该软件包yum install bind-utils