You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
448 B

  1. #/bin/bash
  2. apt-get update && apt-get install unbound -y
  3. wget https://www.internic.net/domain/named.cache -O /var/lib/unbound/root.hints
  4. chown unbound: /var/lib/unbound/root.hints
  5. chmod 644 /var/lib/unbound/root.hints
  6. wget -O /etc/unbound/unbound.conf.d/dns.conf https://git.virtubox.net/virtubox/bash-script-config/raw/branch/master/unbound/dns.conf
  7. touch /var/log/unbound.log
  8. chown unbound: /var/log/unbound.log
  9. service unbound restart