How to install dig on ubuntu

Dig is a network administration command-line tool for querying the Domain Name System (DNS).
To install dig run the following commands in the terminal.

sudo apt update
sudo apt install dnsutils