SCRIPT DE INSTALAÇÃO DNSSEC BIND9
#Copie e cole no terminal como root (DEBIAN 11)
# INSTALANDO O BIND9
apt update
apt install bind9 dnsutils -y
echo "nameserver 127.0.0.1" > /etc/resolv.conf
echo "nameserver ::1" >> /etc/resolv.conf
# GERANDO ARQUIVO
cat <<-EOF> /etc/bind/named.conf.options
acl autorizados {
127.0.0.1;
::1;
192.168.0.0/16;
172.16.0.0/12;
100.64.0.0/10;
10.0.0.0/8;
;
;
df00::/8;
2001:db8::/32;
fe80::/64;
};
options {
directory "/var/cache/bind";
dnssec-validation auto;
auth-nxdomain no;
listen-on { any; };
listen-on-v6 { any; };
minimal-responses yes;
max-ncache-ttl 30;
allow-recursion { autorizados; };
allow-query-cache { autorizados; };
allow-query { any; };
masterfile-format text;
version "RR DNS Server – Do good";
};
EOF
# REINICIANDO O SERVICO
systemctl stop bind9
sleep 10
systemctl stop bind9
sleep 10
systemctl start bind9