21 lignes
448 B
Bash
21 lignes
448 B
Bash
#/bin/bash
|
|
|
|
apt-get update && apt-get install unbound -y
|
|
|
|
wget https://www.internic.net/domain/named.cache -O /var/lib/unbound/root.hints
|
|
|
|
chown unbound: /var/lib/unbound/root.hints
|
|
chmod 644 /var/lib/unbound/root.hints
|
|
|
|
wget -O /etc/unbound/unbound.conf.d/dns.conf https://git.virtubox.net/virtubox/bash-script-config/raw/branch/master/unbound/dns.conf
|
|
|
|
touch /var/log/unbound.log
|
|
chown unbound: /var/log/unbound.log
|
|
|
|
|
|
service unbound restart
|
|
|
|
|
|
|
|
|