dnsenum command not found

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

Introduction

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

dnsenum: command not found

or when using sudo you get the following error message

sudo: dnsenum: command not found

Solutions to dnsenum: command not found

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

In Ubuntu dnsenum is provided by dnsenum package.

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:

  1. Get the host’s addresses (A record).
  2. Get the namservers (threaded).
  3. Get the MX record (threaded).
  4. Perform axfr queries on nameservers and get BIND versions(threaded).
  5. Get extra names and subdomains via google scraping (google query = “allinurl: -www site:domain”).
  6. Brute force subdomains from file, can also perform recursion on subdomain that have NS records (all threaded).
  7. Calculate C class domain network ranges and perform whois queries on them (threaded).
  8. Perform reverse lookups on netranges (C class or/and whois netranges) (threaded).
  9. 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.

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

sudo apt-get -y install dnsenum

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

You can also use apt command to install dnsenum.

sudo apt -y install dnsenum

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

sudo aptitude install dnsenum

Summary

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