[LKS] DNS - fourslickz/notes GitHub Wiki
DNS
SV1
sudo apt update
sudo apt install bind9 -y
sudo nano /etc/bind/named.conf.local
zone "north.site" {
type master;
file "/etc/bind/db.north.site";
allow-transfer { 192.168.10.12; }; // Ijinkan transfer ke Slave
};
zone "south.site" {
type forward;
forwarders { 103.10.70.120; };
};
sudo systemctl restart bind9
sudo systemctl enable bind9
sudo systemctl status bind9
sudo named-checkconf
sudo named-checkzone north.site /etc/bind/db.north.site
SV2
sudo nano /etc/bind/named.conf.local
zone "north.site" {
type slave;
masters { 192.168.10.11; };
file "/var/cache/bind/db.north.site";
};
sudo systemctl restart bind9
sudo systemctl enable bind9
check sv1 & sv2
nslookup www.north.site 192.168.10.11
nslookup file.north.site 192.168.10.12
nslookup south.site 192.168.10.11