pdnsutil command not found

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

Introduction

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

pdnsutil: command not found

or when using sudo you get the following error message

sudo: pdnsutil: command not found

Solutions to pdnsutil: command not found

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

In Ubuntu pdnsutil is provided by pdns-server package.

pdns-server is:

PowerDNS is a versatile nameserver which supports a large number of different backends ranging from simple zonefiles to relational databases and load balancing/failover algorithms. PowerDNS tries to emphasize speed and security.

This is the authoritative nameserver that answers questions about domains that it knows about. You also need at least one backend installed to serve data.

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

sudo apt-get -y install pdns-server

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

You can also use apt command to install pdns-server.

sudo apt -y install pdns-server

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

sudo aptitude install pdns-server

Summary

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