bash-script-config/unbound-setup.sh

21 lines
448 B
Bash
Raw Permalink Normal View History

2018-11-12 01:02:38 +01:00
#/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
2018-11-12 01:03:20 +01:00
touch /var/log/unbound.log
chown unbound: /var/log/unbound.log
2018-11-12 01:02:38 +01:00
service unbound restart
2018-11-12 01:08:08 +01:00