Compare commits

...

2 Commits

Author SHA1 Message Date
tteckster 4103d40622
Update pihole-install.sh
add root-hints
2024-04-03 03:07:32 -04:00
tteckster 3bcf2cece6
Update pihole-install.sh
tweak
2024-04-03 02:42:06 -04:00
1 changed files with 2 additions and 1 deletions

View File

@ -73,6 +73,7 @@ server:
infra-cache-slabs: 8
key-cache-slabs: 8
serve-expired: yes
root-hints: /var/lib/unbound/root.hints
serve-expired-ttl: 3600
edns-buffer-size: 1232
prefetch: yes
@ -93,7 +94,7 @@ EOF
cat <<EOF >/etc/dnsmasq.d/99-edns.conf
edns-packet-max=1232
EOF
wget -q https://www.internic.net/domain/named.root >/var/lib/unbound/root.hints
wget -qO /var/lib/unbound/root.hints https://www.internic.net/domain/named.root
sed -i -e 's/PIHOLE_DNS_1=8.8.8.8/PIHOLE_DNS_1=127.0.0.1#5335/' -e 's/PIHOLE_DNS_2=8.8.4.4/#PIHOLE_DNS_2=8.8.4.4/' /etc/pihole/setupVars.conf
systemctl enable -q --now unbound
systemctl restart pihole-FTL.service