To configure primary and secondary BIND
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 |
Mater, Slave Server에서 방화벽 열기 |
firewall-cmd --permanent --add-port=53/tcp firewall-cmd --permanent --add-port=53/udp firewall-cmd --reload |
Primay |
Secondary |
192.168.8.136 |
192.168.8.138 |
To install packages for BIND on both system |
[root@localhost ~]# yum -y install bind bind-libs bind-utils |
Priamry [root@localhost ~]# vi /etc/named.conf |
options { recursion yes; |
Secondary [root@localhost ~]# vi /etc/named.conf |
options { recursion yes; |
Primary [root@localhost ~]# vi /etc/named.rfc1912.zones |
zone "infosec.local" IN { zone "8.168.192.in-addr.arpa" IN { |
Secondary [root@localhost ~]# vi /etc/named.rfc1912.zones |
zone "infosec.local" IN { |
Primary [root@localhost ~]# cd /var/named |
[root@localhost named]#cp -pv named.localhost infosec.local.db [root@localhost named]#cp -pv named.loopback infosec.local.rdb |
Primary [root@localhost named]# vi /var/named/infosec.local.db |
$TTL 3H |
While modifying zones, do not forget to change the serial number in the lookup file.
Primary [root@localhost named]# vi /var/named/infosec.local.rdb |
$TTL 1D |
Start bind daemon on both system |
[root@localhost named]# systemctl start named.service |
Auto remount on both system |
[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 |
Slave 서버에서 AXFR , IXFR 질의하기 |
dig AXFR infosec.local @MasterIP |