dnscache-conf command not found

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

Introduction

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

dnscache-conf: command not found

or when using sudo you get the following error message

sudo: dnscache-conf: command not found

Solutions to dnscache-conf: command not found

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

In Ubuntu dnscache-conf is provided by djbdns-conf package.

djbdns-conf is:

For each kind of server (tinydns, dnscache, axfrdns, walldns, rbldns) upstream provides program to create service directory for that server.

Service directories are part of corresponding binary packages, the only case when you may need this package is unlikely case when you want to run several instances of same service at single machine.

Service directories, created by programs in this package are compatible with both runit(8) and daemontools(8) supervision suites, but are somewhat simplistic – they store log files in same place as configuration, for example.

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

sudo apt-get -y install djbdns-conf

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

You can also use apt command to install djbdns-conf.

sudo apt -y install djbdns-conf

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

sudo aptitude install djbdns-conf

Summary

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