Ubuntu dig command not found - How to install dig on Ubuntu

Ubuntu dig command not found - How to install dig on Ubuntu

The dig command is a utility that is used to perform DNS (Domain Name System) lookups on Ubuntu and other Linux systems. It is useful for troubleshooting DNS issues and for gathering information about DNS records.

If you get the message "dig command not found" when trying to use the dig command on an Ubuntu system, it means that the dig command is not installed on your system. To install the dig command on Ubuntu, you can use the following steps:

  1. Update the package list by running the following command:
‮r‬efer to:lautturi.com
sudo apt-get update
  1. Install the dnsutils package, which includes the dig command, by running the following command:
sudo apt-get install dnsutils

This will install the dig command and all of the other utilities in the dnsutils package.

  1. Once the installation is complete, you should be able to use the dig command.

For example, to perform a DNS lookup for the domain example.com, you can run the following command:

dig example.com

This will display the DNS records for the domain example.com.

Keep in mind that the dig command requires that the bind9 package is installed on the system. If the bind9 package is not installed, the dig command may not work correctly. You can install the bind9 package by running the following command:

sudo apt-get install bind9
Created Time:2017-10-30 14:27:28  Author:lautturi