1
0
Fork 0
mirror of https://github.com/sujiba/pihole-unbound-hyperlocal.git synced 2025-07-10 13:55:12 +02:00

reactivated dnsmasq cache

This commit is contained in:
sujiba 2023-05-04 01:33:02 +02:00
parent dba7c1a693
commit bc3ffa9423
3 changed files with 4 additions and 15 deletions

View file

@ -48,17 +48,6 @@ dig sigok.verteiltesysteme.net @127.0.0.1 | grep status
- Second dig should show status: SERVFAIL - Second dig should show status: SERVFAIL
- Last dig should show status: NOERROR - Last dig should show status: NOERROR
### Additional configuration
Edit setupVars.conf
```
vi ./etc-pihole/setupVars.conf
```
and add
```
# Caching is done by unbound
CACHE_SIZE=0
```
#### resolv.conf #### resolv.conf
If you are having problems with the pihole deployment inside the container, uncomment the following line in the docker-compose.yaml If you are having problems with the pihole deployment inside the container, uncomment the following line in the docker-compose.yaml
``` ```

View file

@ -3,4 +3,4 @@
# This is an alternative to having dnsmasq validate DNSSEC, # This is an alternative to having dnsmasq validate DNSSEC,
# but it depends on the security of the network between dnsmasq and the upstream servers, # but it depends on the security of the network between dnsmasq and the upstream servers,
# and the trustworthiness of the upstream servers. # and the trustworthiness of the upstream servers.
proxy-dnssec proxy-dnssec

View file

@ -2,7 +2,7 @@
IMAGE=sujiba/pihole-unbound-hyperlocal:latest IMAGE=sujiba/pihole-unbound-hyperlocal:latest
NAME=pihole-unbound NAME=pihole
HOSTNAME=raspi-01 HOSTNAME=raspi-01
# 80 or an alternative port if you use a reverse proxy like nginx # 80 or an alternative port if you use a reverse proxy like nginx
@ -25,7 +25,7 @@ DNSSEC=false
# Set the cache size for dnsmasq. # Set the cache size for dnsmasq.
# Useful for increasing the default cache size or to set it to 0. # Useful for increasing the default cache size or to set it to 0.
# Note that when DNSSEC is "true", then this setting is ignored. # Note that when DNSSEC is "true", then this setting is ignored.
CUSTOM_CACHE_SIZE=0 CUSTOM_CACHE_SIZE=10000
# Never forward reverse lookups for private ranges # Never forward reverse lookups for private ranges
DNS_BOGUS_PRIV=true DNS_BOGUS_PRIV=true
@ -46,4 +46,4 @@ WEBTHEME=default-dark
MAXDBDAYS=30 MAXDBDAYS=30
# Write FTL database from RAM to SD card every x minutes. - Save SD card # Write FTL database from RAM to SD card every x minutes. - Save SD card
DBINTERVAL=60 DBINTERVAL=60