// Aula 4 - Criando um Servidor DNS Slave # vim /etc/netplan gateway4: 192.168.88.2, 192.168.88.3 # apt-get install bind9 -y # scp /etc/bind/named.conf.local root@dns2.empresa.com.br:/etc/bind/named.conf.local # vim /etc/bind/named.conf.local zone "empresa.com.br" { type slave; file "direta.db"; masters { 192.168.88.2; }; }; zone "88.168.192.in-addr.arpa" { type slave; file "inversa.db"; masters {192.168.88.2; }; }; # ls -l /var/cache/bind # vim /etc/bind/named.conf.local zone "empresa.com.br" { type master; file "/etc/bind/direta.db"; allow-transfer { 192.168.88.3; }; notify yes; also-notify {192.168.88.3; }; }; zone "88.168.192.in-addr.arpa" { type master; file "/etc/bind/inversa.db"; allow-transfer { 192.168.88.3; }; also-notify {192.168.88.3; }; }; # rndc reload # tailf /var/log/syslog # ls -l /var/cache/bind/ # systemctl restart bind9 # tail -n 30 /var/log/syslog # dig -x 192.168.88.4 @192.168.88.3