dnshistory command not found

In this troubleshooting guide we learn how to fix dnshistory command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

dnshistory: command not found

or when using sudo you get the following error message

sudo: dnshistory: command not found

Solutions to dnshistory: command not found

How To Fix dnshistory: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu dnshistory is provided by dnshistory package.

dnshistory is:

Provide a means for storing a history of DNS/Name changes for the IP Addresses extracted from web log files. The major target being that multiple analyses of older log files do not require re-lookups of IP Address to FQDNs, and additionally maintain the accuracy of the lookup as it was then and not as it is now.

To fix this problem, we can install more using the command below.

sudo apt-get -y install dnshistory

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install dnshistory.

sudo apt -y install dnshistory

Or if you have aptitude installed you can use the following command.

sudo aptitude install dnshistory

Summary

In this tutorial we learn how to fix dnshistory command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.