How To Install dnsdiag on Debian 10
Introduction
In this tutorial we learn how to install dnsdiag
on Debian 10.
What is dnsdiag
dnsdiag is:
Set of tools to perform basic audits on your DNS requests and responses to make sure your DNS is working as you expect. Dnsping can be used to measure the response time of a given DNS server for arbitrary requests. Just like a traditional ping utility, it provides similar functionality for DNS requests.
Dnstraceroute can be used to trace the path a DNS request takes to destination. Its purpose is to detect whether a request is redirected or hijacked. This can be done by comparing different DNS queries being sent to the same DNS server using dnstraceroute and observe if there is any difference between the path.
dnseval evaluates multiple DNS resolvers and helps you choose the best DNS server for your network. It is highly recommended to use your own DNS resolver as opposed to a third-party DNS server, but in case you need to choose the best DNS forwarder for your network, dnseval lets you compare different DNS servers from performance (latency) and reliability (loss) point of view.
There are three methods to install dnsdiag
on Debian 10. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install dnsdiag Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install dnsdiag
using apt-get
by running the following command:
sudo apt-get -y install dnsdiag
Install dnsdiag Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install dnsdiag
using apt
by running the following command:
sudo apt -y install dnsdiag
Install dnsdiag Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install dnsdiag
using aptitude
by running the following command:
sudo aptitude -y install dnsdiag
How To Uninstall dnsdiag on Debian 10
To uninstall only the dnsdiag
package we can use the following command:
sudo apt-get remove dnsdiag
Uninstall dnsdiag And Its Dependencies
To uninstall dnsdiag
and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove dnsdiag
Remove dnsdiag Configurations and Data
To remove dnsdiag
configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge dnsdiag
Remove dnsdiag configuration, data, and all of its dependencies
We can use the following command to remove dnsdiag
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge dnsdiag
Dependencies
dnsdiag have the following dependencies:
References
Summary
In this tutorial we learn how to install dnsdiag
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.