dnscache command not found

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

Introduction

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

dnscache: command not found

or when using sudo you get the following error message

sudo: dnscache: command not found

Solutions to dnscache: command not found

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

In Ubuntu dnscache is provided by dnscache package.

dnscache is:

When a browser wants to contact www.debian.org, it first asks a DNS cache, such as dnscache, to find the IP address of www.debian.org.

Internet service providers run dnscache to find IP addresses requested by their customers. If you’re running a home computer or a workstation, you can run your own dnscache to speed up your web browsing.

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

sudo apt-get -y install dnscache

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

You can also use apt command to install dnscache.

sudo apt -y install dnscache

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

sudo aptitude install dnscache

Summary

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