Update Unbound part
This commit is contained in:
parent
04d9cc8a92
commit
2af559e6af
1 changed files with 20 additions and 22 deletions
|
|
@ -105,34 +105,32 @@ prefetch: yes' >> /etc/unbound/unbound.conf
|
||||||
sed -i 's|# hide-version: no|hide-version: yes|' /etc/unbound/unbound.conf
|
sed -i 's|# hide-version: no|hide-version: yes|' /etc/unbound/unbound.conf
|
||||||
sed -i 's|# use-caps-for-id: no|use-caps-for-id: yes|' /etc/unbound/unbound.conf
|
sed -i 's|# use-caps-for-id: no|use-caps-for-id: yes|' /etc/unbound/unbound.conf
|
||||||
|
|
||||||
fi
|
|
||||||
elif [[ "$OS" = "arch" ]]; then
|
elif [[ "$OS" = "arch" ]]; then
|
||||||
# Install Unbound
|
pacman -Syu unbound
|
||||||
pacman -Syu unbound expat
|
|
||||||
|
|
||||||
# Permissions for the DNSSEC keys
|
|
||||||
chown root:unbound /etc/unbound
|
|
||||||
chmod 775 /etc/unbound
|
|
||||||
|
|
||||||
# Get root servers list
|
# Get root servers list
|
||||||
wget https://www.internic.net/domain/named.root -O /etc/unbound/root.hints
|
curl -o /etc/unbound/root.hints https://www.internic.net/domain/named.cache
|
||||||
|
|
||||||
# Configuration
|
|
||||||
mv /etc/unbound/unbound.conf /etc/unbound/unbound.conf.old
|
mv /etc/unbound/unbound.conf /etc/unbound/unbound.conf.old
|
||||||
|
|
||||||
echo 'server:
|
echo 'server:
|
||||||
root-hints: root.hints
|
use-syslog: yes
|
||||||
auto-trust-anchor-file: trusted-key.key
|
do-daemonize: no
|
||||||
interface: 10.8.0.1
|
username: "unbound"
|
||||||
access-control: 10.8.0.1/24 allow
|
directory: "/etc/unbound"
|
||||||
port: 53
|
trust-anchor-file: trusted-key.key
|
||||||
do-daemonize: yes
|
root-hints: root.hints
|
||||||
num-threads: 2
|
interface: 10.8.0.1
|
||||||
use-caps-for-id: yes
|
access-control: 10.8.0.1/24 allow
|
||||||
harden-glue: yes
|
port: 53
|
||||||
hide-identity: yes
|
num-threads: 2
|
||||||
hide-version: yes
|
use-caps-for-id: yes
|
||||||
qname-minimisation: yes
|
harden-glue: yes
|
||||||
prefetch: yes' > /etc/unbound/unbound.conf
|
hide-identity: yes
|
||||||
|
hide-version: yes
|
||||||
|
qname-minimisation: yes
|
||||||
|
prefetch: yes' > /etc/unbound/unbound.conf
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ ! "$OS" =~ (fedora|centos) ]];then
|
if [[ ! "$OS" =~ (fedora|centos) ]];then
|
||||||
# DNS Rebinding fix
|
# DNS Rebinding fix
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue