
Introduction
In this tutorial we learn how to install bind9
on Ubuntu 20.04.
What is bind9
bind9 is:
The Berkeley Internet Name Domain (BIND 9) implements an Internet domain
name server. BIND 9 is the most widely-used name server software on the
Internet, and is supported by the Internet Software Consortium, www.isc.org.
This package provides the server and related configuration files.
Task: dns-server
Package: bind9
Architecture: amd64
Version: 1:9.16.1-0ubuntu2
Priority: optional
Section: net
Origin: Ubuntu
Maintainer: Ubuntu Developers [email protected]
Original-Maintainer: Debian DNS Team [email protected]
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 866
Pre-Depends: init-system-helpers (>= 1.54~)
Depends: adduser, bind9-libs (= 1:9.16.1-0ubuntu2), bind9-utils (= 1:9.16.1-0ubuntu2), debconf | debconf-2.0, dns-root-data, lsb-base (>= 3.2-14), iproute2, netbase, libc6 (>= 2.7), libcap2 (>= 1:2.10), libjson-c4 (>= 0.13.1), liblmdb0 (>= 0.9.7), libmaxminddb0 (>= 1.3.0), libssl1.1 (>= 1.1.0), libxml2 (>= 2.7.4), zlib1g (>= 1:1.1.4)
Suggests: bind-doc, dnsutils, resolvconf, ufw
Breaks: bind (« 1:9.13.6~)
Replaces: bind (« 1:9.13.6~)
Filename: pool/main/b/bind9/bind9_9.16.1-0ubuntu2_amd64.deb
Size: 232772
MD5sum: 8ebc7a5761cfd611f39d5b5eaf8f137e
SHA1: da5472c5ea24d8eb428f25bcfeb5b91885490c17
SHA256: e28a282672fcbc468bdc8680b309a465ccc9283f0b6b43f10d4df3e9860daf81
Homepage: https://www.isc.org/downloads/bind/
Description-en: Internet Domain Name Server
The Berkeley Internet Name Domain (BIND 9) implements an Internet domain
name server. BIND 9 is the most widely-used name server software on the
Internet, and is supported by the Internet Software Consortium, www.isc.org.
This package provides the server and related configuration files.
Task: dns-server
There are three methods to install bind9
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install bind9 Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install bind9
using apt-get
by running the following command:
sudo apt-get -y install bind9
Install bind9 Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install bind9
using apt
by running the following command:
sudo apt -y install bind9
Install bind9 Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install bind9
using aptitude
by running the following command:
sudo aptitude -y install bind9
How To Uninstall bind9 on Ubuntu 20.04
To uninstall only the bind9
package we can use the following command:
sudo apt-get remove bind9
Uninstall bind9 And Its Dependencies
To uninstall bind9
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove bind9
Remove bind9 Configurations and Data
To remove bind9
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge bind9
Remove bind9 configuration, data, and all of its dependencies
We can use the following command to remove bind9
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge bind9
References
Summary
In this tutorial we learn how to install bind9
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.
