Cyberithub

How to Install dnsutils package on Ubuntu 20.04 LTS (Focal Fossa)

Advertisements

In this article, I will take you through the steps to install dnsutils package on Ubuntu 20.04 LTS (Focal Fossa). dnsutils package consists of several dns client utilities like dig, nslookup and nsupdate. All of them derived from the BIND source tree. BIND or Berkeley Internet Name Domain is the most widely-used name server software on the Internet. It implements an Internet domain name server. Check more about dnsutils package.

How to Install dnsutils package on Ubuntu 20.04 LTS (Focal Fossa)

How to Install dnsutils package on Ubuntu 20.04 LTS (Focal Fossa)

Also Read: How to Install flawfinder on Ubuntu 20.04 LTS (Focal Fossa)

Step 1: Prerequisites

a) You should have running Ubuntu 20.04 LTS Server.

b) You should have sudo or root access to run privileged commands.

c) You should have apt-get utility available in your System.

 

Step 2 Update Your Server

First let's sync the system with all the latest available updates from Ubuntu repo using apt-get update command as shown below. If any of the packages needs to be upgraded then run apt-get upgrade command as well.

root@cyberithub:~# apt-get update
Hit:1 http://in.archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:5 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu focal InRelease
Get:6 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:7 https://repo.protonvpn.com/debian stable InRelease
Hit:8 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:9 http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu focal InRelease
............................................

 

Step 3: Install dnsutils

In the next step, you can install dnsutils package by using apt-get install dnsutils command as shown below. This will download and install the package from the default Ubuntu repo.

root@cyberithub:~# apt-get install dnsutils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libreadline5 linux-headers-5.13.0-37-generic linux-hwe-5.13-headers-5.13.0-37 linux-image-5.13.0-37-generic linux-modules-5.13.0-37-generic
linux-modules-extra-5.13.0-37-generic
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
dnsutils
0 upgraded, 1 newly installed, 0 to remove and 17 not upgraded.
Need to get 2,760 B of archives.
After this operation, 47.1 kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu focal-updates/universe amd64 dnsutils all 1:9.16.1-0ubuntu2.10 [2,760 B]
Fetched 2,760 B in 0s (6,736 B/s)
Selecting previously unselected package dnsutils.
(Reading database ... 240895 files and directories currently installed.)
Preparing to unpack .../dnsutils_1%3a9.16.1-0ubuntu2.10_all.deb ...
Unpacking dnsutils (1:9.16.1-0ubuntu2.10) ...
Setting up dnsutils (1:9.16.1-0ubuntu2.10) ...

 

Step 4: Verify Installation

You can verify the installation by checking the list of files installed using dpkg -L dnsutils command as shown below.

root@cyberithub:~# dpkg -L dnsutils
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/dnsutils
/usr/share/doc/dnsutils/copyright
/usr/share/doc/dnsutils/NEWS.Debian.gz
/usr/share/doc/dnsutils/changelog.Debian.gz

 

Step 5: Uninstall dnsutils

Once you are done with dnsutils package, you can choose to uninstall it from your System by using apt-get remove dnsutils command as shown below.

root@cyberithub:~# apt-get remove dnsutils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libreadline5 linux-headers-5.13.0-37-generic linux-hwe-5.13-headers-5.13.0-37 linux-image-5.13.0-37-generic linux-modules-5.13.0-37-generic
linux-modules-extra-5.13.0-37-generic
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
dnsutils
0 upgraded, 0 newly installed, 1 to remove and 17 not upgraded.
After this operation, 47.1 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 240899 files and directories currently installed.)
Removing dnsutils (1:9.16.1-0ubuntu2.10) ...

Leave a Comment