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:
sudo apt-get update
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.
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