apt-get install bind9
vim /etc/bind/named.conf.options
listen-on {
192.168.50.0/24;
};
allow-query { any; };
forwarders {
8.8.8.8;
8.8.4.4;
};
check configuration
sudo named-checkconf
restart bind9 service
sudo systemctl restart bind9