dns_tree command not found

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

Introduction

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

dns_tree: command not found

or when using sudo you get the following error message

sudo: dns_tree: command not found

Solutions to dns_tree: command not found

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

In Ubuntu dns_tree is provided by dns-browse package.

dns-browse is:

This package provides two programs to make user lookups on DNS servers: dns_tree and dns_browse.

dns_tree is a command-line-based front-end to dig. It replaces the several dig invocations necessary to fetch a zone, and it formats the output in a somewhat sensible hierarchical style (a tree).

dns_browse is a GUI front-end to dns_tree. It allows point-and-click DNS browsing and makes it easy to expand/compress hierarchies in one or more DNS zones.

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

sudo apt-get -y install dns-browse

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

You can also use apt command to install dns-browse.

sudo apt -y install dns-browse

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

sudo aptitude install dns-browse

Summary

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