[root@c7 ~]# nslookup#提示没有找到命令
-bash: nslookup: 未找到命令
[root@c7 ~]# yum provides */nslookup#查询nslookup使用哪个软件包
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.neusoft.edu.cn
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn #查询到是使用bind-utils软件包
32:bind-utils-9.9.4-29.el7.x86_64 : Utilities for querying DNS name servers
源 :base
匹配来源:
文件名 :/usr/bin/nslookup
[root@c7 ~]# yum -y install bind-utils#安装该bind-utils软件包
[root@c7 ~]# nslookup
> www.baidu.com
Server: 219.141.140.10
Address: 219.141.140.10#53
Non-authoritative answer:
www.baidu.com canonical name = www.a.shifen.com.
Name: www.a.shifen.com
Address: 220.181.112.244
Name: www.a.shifen.com
Address: 220.181.111.188
>