cat > /etc/bind/options.conf << 'EOF'
options {
directory "/var/lib/bind";
listen-on { 192.168.100.2; 127.0.0.1; };
allow-query { any; };
forwarders { 8.8.8.8; };
recursion yes;
};
EOF
chown -R named:named /var/lib/bind
chmod -R 755 /var/lib/bind
named-checkconf
systemctl restart bind
systemctl status bind