How To Install dnsenum on Kali Linux
Introduction
In this tutorial we learn how to install dnsenum
on Kali Linux.
What is dnsenum
dnsenum is:
Dnsenum is a multithreaded perl script to enumerate DNS information of a domain and to discover non-contiguous ip blocks. The main purpose of Dnsenum is to gather as much information as possible about a domain. The program currently performs the following operations:
- Get the host’s addresses (A record).
- Get the namservers (threaded).
- Get the MX record (threaded).
- Perform axfr queries on nameservers and get BIND versions(threaded).
- Get extra names and subdomains via google scraping (google query = “allinurl: -www site:domain”).
- Brute force subdomains from file, can also perform recursion on subdomain that have NS records (all threaded).
- Calculate C class domain network ranges and perform whois queries on them (threaded).
- Perform reverse lookups on netranges (C class or/and whois netranges) (threaded).
- Write to domain_ips.txt file ip-blocks.
This program is useful for pentesters, ethical hackers and forensics experts. It also can be used for security tests.
There are three methods to install dnsenum
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 dnsenum Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install dnsenum
using apt-get
by running the following command:
sudo apt-get -y install dnsenum
Install dnsenum Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install dnsenum
using apt
by running the following command:
sudo apt -y install dnsenum
Install dnsenum 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 update
After updating apt database, We can install dnsenum
using aptitude
by running the following command:
sudo aptitude -y install dnsenum
How To Uninstall dnsenum on Kali Linux
To uninstall only the dnsenum
package we can use the following command:
sudo apt-get remove dnsenum
Uninstall dnsenum And Its Dependencies
To uninstall dnsenum
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove dnsenum
Remove dnsenum Configurations and Data
To remove dnsenum
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge dnsenum
Remove dnsenum configuration, data, and all of its dependencies
We can use the following command to remove dnsenum
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge dnsenum
Dependencies
dnsenum have the following dependencies:
- libhtml-parser-perl
- libnet-dns-perl
- libnet-ip-perl
- libnet-netmask-perl
- libnet-whois-ip-perl
- libstring-random-perl
- libwww-mechanize-perl
- libxml-writer-perl
- perl
References
Summary
In this tutorial we learn how to install dnsenum
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.