*WARNING* Binary location for [HOST] [/usr/bin/host] in /etc/csf/csf.conf is either incorrect, is not installed or is not executable
*WARNING* Binary location for [HOST] [/usr/bin/host] in /etc/csf/csf.conf is either incorrect, is not installed or is not executable
FIX :
I saw the above warning while restarting CSF firewall on my server. Do the below steps to fix the error.
1. Log into your Linux server as root user
2 Check whether bind-utils package is installed or not, on my cPanel server it was not installed.
host command is provided by bind-utils package.
-bash: /usr/bin/host: No such file or directory
Command to check whether bind-utils is installed or not :
# rpm -qa | grep bind-utils
4. Install bind-utils package using yum.
–> Running transaction check
—> Package bind-utils.x86_64 32:9.9.4-29.el7_2.3 will be installed
Running transaction
Installing : 32:bind-libs-9.9.4-29.el7_2.3.x86_64 1/2
Installing : 32:bind-utils-9.9.4-29.el7_2.3.x86_64 2/2
Verifying : 32:bind-utils-9.9.4-29.el7_2.3.x86_64 1/2
Verifying : 32:bind-libs-9.9.4-29.el7_2.3.x86_64 2/2
Installed:
bind-utils.x86_64 32:9.9.4-29.el7_2.3
Dependency Installed:
bind-libs.x86_64 32:9.9.4-29.el7_2.3
Now bind-utils is installed and the CSF warning should be fixed.
How to download and install bind-utils rpm
1. Log into your Linux server as ‘root’ user
2. You can download bind-utils package from centOS website using yum command
Run the below command to install on CentOS 7 and RHEL 7 x86_64 server :
#wget http://mirror.centos.org/centos/7/os/x86_64/Packages/bind-utils-9.11.4-16.P2.el7.x86_64.rpm
3. Install bind-utils using yum command or rpm command
# yum install bind-utils-9.11.4-16.P2.el7.x86_64.rpm
Yum will install bind-utils and required dependencies
# rpm -ivh bind-utils-9.11.4-16.P2.el7.x86_64.rpm
You must manually install the dependencies if you are using rpm command.