dnsperf command not found

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

Introduction

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

dnsperf: command not found

or when using sudo you get the following error message

sudo: dnsperf: command not found

Solutions to dnsperf: command not found

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

In Ubuntu dnsperf is provided by dnsperf package.

dnsperf is:

dnsperf gathers accurate latency and throughput metrics for the Domain Name Service (DNS). Network operators can benchmark their naming and addressing infrastructure. dnsperf “self-paces” the DNS query load to simulate network conditions.

resperf systematically increases the query rate and monitors the response rate to simulate caching DNS services.

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

sudo apt-get -y install dnsperf

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

You can also use apt command to install dnsperf.

sudo apt -y install dnsperf

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

sudo aptitude install dnsperf

Summary

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