How to install bind on centos 7

Installing BIND on CentOS 7

Installing BIND on CentOS 7 really is an easy task, it is just a matter of executing the following CLI command, on which as you can see below we’ve also added BIND utils, this option will install all the necessary tools.

yum -y install bind bind-utils

BIND installation log

[root@pc ~]# 
[root@pc ~]# yum -y install bind bind-utils
Loaded plugins: fastestmirror, langpacks
base                                                             | 3.6 kB  00:00:00     
epel/x86_64/metalink                                             |  53 kB  00:00:00     
epel                                                             | 4.7 kB  00:00:00     
extras                                                           | 2.9 kB  00:00:00     
mariadb                                                          | 2.9 kB  00:00:00     
nodesource                                                       | 2.5 kB  00:00:00     
remi-php56                                                       | 3.0 kB  00:00:00     
remi-php73                                                       | 3.0 kB  00:00:00     
remi-safe                                                        | 3.0 kB  00:00:00     
rpmforge                                                         | 1.9 kB  00:00:00     
updates                                                          | 2.9 kB  00:00:00     
(1/8): epel/x86_64/group_gz                                      |  95 kB  00:00:15     
(2/8): mariadb/primary_db                                        |  55 kB  00:00:15     
(3/8): remi-php56/primary_db                                     | 246 kB  00:00:16     
(4/8): epel/x86_64/updateinfo                                    | 1.0 MB  00:00:17     
(5/8): epel/x86_64/primary_db                                    | 6.8 MB  00:00:19     
(6/8): updates/7/x86_64/primary_db                               | 1.3 MB  00:00:15     
(7/8): remi-php73/primary_db                                     | 220 kB  00:00:17     
(8/8): remi-safe/primary_db                                      | 1.7 MB  00:00:17     
Loading mirror speeds from cached hostfile
 * base: mirror.unimagdalena.edu.co
 * epel: mirror.csis.ysu.edu
 * extras: mirror.unimagdalena.edu.co
 * remi-php56: mirror.team-cymru.com
 * remi-php73: mirror.team-cymru.com
 * remi-safe: mirror.team-cymru.com
 * rpmforge: ftp.fi.muni.cz
 * updates: ftp.unicamp.br
Resolving Dependencies
--> Running transaction check
---> Package bind.x86_64 32:9.11.4-16.P2.el7_8.3 will be installed
--> Processing Dependency: bind-libs-lite(x86-64) = 32:9.11.4-16.P2.el7_8.3 for package: 32:bind-9.11.4-16.P2.el7_8.3.x86_64
--> Processing Dependency: bind-libs(x86-64) = 32:9.11.4-16.P2.el7_8.3 for package: 32:bind-9.11.4-16.P2.el7_8.3.x86_64
---> Package bind-utils.x86_64 32:9.11.4-9.P2.el7 will be updated
---> Package bind-utils.x86_64 32:9.11.4-16.P2.el7_8.3 will be an update
--> Running transaction check
---> Package bind-libs.x86_64 32:9.11.4-9.P2.el7 will be updated
---> Package bind-libs.x86_64 32:9.11.4-16.P2.el7_8.3 will be an update
--> Processing Dependency: bind-license = 32:9.11.4-16.P2.el7_8.3 for package: 32:bind-libs-9.11.4-16.P2.el7_8.3.x86_64
---> Package bind-libs-lite.x86_64 32:9.11.4-9.P2.el7 will be updated
---> Package bind-libs-lite.x86_64 32:9.11.4-16.P2.el7_8.3 will be an update
--> Running transaction check
---> Package bind-license.noarch 32:9.11.4-9.P2.el7 will be updated
---> Package bind-license.noarch 32:9.11.4-16.P2.el7_8.3 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================
 Package              Arch         Version                          Repository     Size
========================================================================================
Installing:
 bind                 x86_64       32:9.11.4-16.P2.el7_8.3          updates       2.3 M
Updating:
 bind-utils           x86_64       32:9.11.4-16.P2.el7_8.3          updates       259 k
Updating for dependencies:
 bind-libs            x86_64       32:9.11.4-16.P2.el7_8.3          updates       155 k
 bind-libs-lite       x86_64       32:9.11.4-16.P2.el7_8.3          updates       1.1 M
 bind-license         noarch       32:9.11.4-16.P2.el7_8.3          updates        89 k

Transaction Summary
========================================================================================
Install  1 Package
Upgrade  1 Package (+3 Dependent packages)

Total download size: 3.9 M
Downloading packages:
No Presto metadata available for updates
(1/5): bind-libs-9.11.4-16.P2.el7_8.3.x86_64.rpm                 | 155 kB  00:00:15     
(2/5): bind-9.11.4-16.P2.el7_8.3.x86_64.rpm                      | 2.3 MB  00:00:16     
(3/5): bind-license-9.11.4-16.P2.el7_8.3.noarch.rpm              |  89 kB  00:00:00     
(4/5): bind-utils-9.11.4-16.P2.el7_8.3.x86_64.rpm                | 259 kB  00:00:00     
(5/5): bind-libs-lite-9.11.4-16.P2.el7_8.3.x86_64.rpm            | 1.1 MB  00:00:00     
----------------------------------------------------------------------------------------
Total                                                      248 kB/s | 3.9 MB  00:16     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : 32:bind-license-9.11.4-16.P2.el7_8.3.noarch                          1/9 
  Updating   : 32:bind-libs-lite-9.11.4-16.P2.el7_8.3.x86_64                        2/9 
  Updating   : 32:bind-libs-9.11.4-16.P2.el7_8.3.x86_64                             3/9 
  Updating   : 32:bind-utils-9.11.4-16.P2.el7_8.3.x86_64                            4/9 
  Installing : 32:bind-9.11.4-16.P2.el7_8.3.x86_64                                  5/9 
  Cleanup    : 32:bind-utils-9.11.4-9.P2.el7.x86_64                                 6/9 
  Cleanup    : 32:bind-libs-9.11.4-9.P2.el7.x86_64                                  7/9 
  Cleanup    : 32:bind-libs-lite-9.11.4-9.P2.el7.x86_64                             8/9 
  Cleanup    : 32:bind-license-9.11.4-9.P2.el7.noarch                               9/9 
  Verifying  : 32:bind-libs-lite-9.11.4-16.P2.el7_8.3.x86_64                        1/9 
  Verifying  : 32:bind-utils-9.11.4-16.P2.el7_8.3.x86_64                            2/9 
  Verifying  : 32:bind-9.11.4-16.P2.el7_8.3.x86_64                                  3/9 
  Verifying  : 32:bind-license-9.11.4-16.P2.el7_8.3.noarch                          4/9 
  Verifying  : 32:bind-libs-9.11.4-16.P2.el7_8.3.x86_64                             5/9 
  Verifying  : 32:bind-license-9.11.4-9.P2.el7.noarch                               6/9 
  Verifying  : 32:bind-libs-9.11.4-9.P2.el7.x86_64                                  7/9 
  Verifying  : 32:bind-libs-lite-9.11.4-9.P2.el7.x86_64                             8/9 
  Verifying  : 32:bind-utils-9.11.4-9.P2.el7.x86_64                                 9/9 

Installed:
  bind.x86_64 32:9.11.4-16.P2.el7_8.3                                                   

Updated:
  bind-utils.x86_64 32:9.11.4-16.P2.el7_8.3                                             

Dependency Updated:
  bind-libs.x86_64 32:9.11.4-16.P2.el7_8.3                                              
  bind-libs-lite.x86_64 32:9.11.4-16.P2.el7_8.3                                         
  bind-license.noarch 32:9.11.4-16.P2.el7_8.3                                           

Complete!

Where to go next?