在Linux安装过程中,我选择了“最小”选项:

当我去运行nslookup命令来查找IP地址时,我收到了错误消息nslookup: command not found,如下例所示。
$ nslookup www.google.com
bash: nslookup: command not found
在Linux安装过程中,我选择了“最小”选项:

当我去运行nslookup命令来查找IP地址时,我收到了错误消息nslookup: command not found,如下例所示。
$ nslookup www.google.com
bash: nslookup: command not found
Answers:
bind-utils我认为其中包含的软件包可能没有提供最小安装nslookup。
您可以安装bind-utils:
sudo yum install bind-utils
通常,您可以使用以下yum provides命令搜索提供命令的软件包:
sudo yum provides '*bin/nslookup'
*/nslookup。
package bind-utils not found
ubuntu,请apt-get install dnsutils -y改用。
dnsutils
bind-utils包含nslookup二进制文件的软件包?