帮助中心

linux -bash: dig: command not found

2015-10-15 13:43:05

使用dig命令时,报错:

[root@localhost scripts]# dig hulian.top
-bash: dig: command not found

原因是默认系统并没有安装此命令,大多服务器使用不了这些命令也是这个原因。默认集成在bind-utils工具包里。

解决办法:安装bind-utils包

[root@localhost scripts]# yum -y install bind-utils