To install BIND on CentOS 7
CentOS 7 Version |
Linux localhost.localdomain 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux |
Network Interface Card |
[root@localhost ~]# ip addr show ens33 |
To install packages for BIND |
[root@localhost ~]# yum -y install bind bind-libs bind-utils |
[root@localhost ~]# vi /etc/named.conf |
options { recursion yes; |
[root@localhost ~]# vi /etc/named.rfc1912.zones |
zone "infosec.local" IN {
zone "8.168.192.in-addr.arpa" IN { |
[root@localhost ~]# cd /var/named |
[root@localhost named]#cp -pv named.empty infosec.local.db [root@localhost named]#cp -pv named.loopback infosec.local.rdb |
[root@localhost named]# vi /var/named/infosec.local.db |
$TTL 3H |
[root@localhost named]# vi /var/named/infosec.local.rdb |
$TTL 1D |
Start bind daemon |
[root@localhost named]# systemctl start named.service |
Auto remount |
[root@localhost named]# systemctl enable named.service [root@localhost ~]# systemctl list-unit-files |
[root@localhost ~]# ps -ef | grep named |
[root@localhost named]# systemctl | grep named |
|
[root@localhost named]# named-checkzone infosec.local /var/named/infosec.local.db |