rawdns command not found

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

Introduction

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

rawdns: command not found

or when using sudo you get the following error message

sudo: rawdns: command not found

Solutions to rawdns: command not found

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

In Ubuntu rawdns is provided by rawdns package.

rawdns is:

“rawdns” is a DNS forwarder that allows for DNS requests to return the IP addresses of Docker containers directly.

For example, if one has a container named “app”, then a request for “app.docker” would return the IP address of that container. Likewise, if the “app” container has a linked database container whose alias name is “db”, then a request for “db.app.docker” would return the IP address of the linked database container.

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

sudo apt-get -y install rawdns

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

You can also use apt command to install rawdns.

sudo apt -y install rawdns

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

sudo aptitude install rawdns

Summary

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