How To Install dnsdiag on Kali Linux
Introduction
In this tutorial we learn how to install dnsdiag on Kali Linux.
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 Kali Linux. 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 updateAfter updating apt database, We can install dnsdiag using apt-get by running the following command:
sudo apt-get -y install dnsdiagInstall dnsdiag Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install dnsdiag using apt by running the following command:
sudo apt -y install dnsdiagInstall dnsdiag Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install dnsdiag using aptitude by running the following command:
sudo aptitude -y install dnsdiagHow To Uninstall dnsdiag on Kali Linux
To uninstall only the dnsdiag package we can use the following command:
sudo apt-get remove dnsdiagUninstall dnsdiag And Its Dependencies
To uninstall dnsdiag and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove dnsdiagRemove dnsdiag Configurations and Data
To remove dnsdiag configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge dnsdiagRemove 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 dnsdiagDependencies
dnsdiag have the following dependencies:
References
Summary
In this tutorial we learn how to install dnsdiag package on Kali Linux using different package management tools: apt, apt-get and aptitude.