khost command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
khost: command not found
or when using sudo you get the following error message
sudo: khost: command not found
Solutions to khost: command not found
How To Fix khost: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu khost is provided by knot-host package.
knot-host is:
Knot DNS is a fast, authoritative only, high performance, feature full and open source name server.
Knot DNS is developed by CZ.NIC Labs, the R&D department of .CZ registry and hence is well suited to run anything from the root zone, the top-level domain, to many smaller standard domain names.
This package provides the ‘host’ program in the form that is bundled with the Knot DNS. The ‘host’ command is designed to be 1:1 compatible with BIND 9.x ‘host’ program.
To fix this problem, we can install more using the command below.
sudo apt-get -y install knot-host
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install knot-host.
sudo apt -y install knot-host
Or if you have aptitude installed you can use the following command.
sudo aptitude install knot-host
Summary
In this tutorial we learn how to fix khost command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.