Unbound config

This commit is contained in:
Nicolas Meienberger 2022-03-30 00:11:32 +02:00
parent dd4ffc2a4d
commit deca40974d
3 changed files with 38 additions and 1 deletions

4
.gitignore vendored
View File

@ -19,4 +19,6 @@ app-data/nextcloud/data/redis/*
!app-data/wg-easy/.gitkeep
# Pi-hole app
app-data/pi-hole/*
app-data/pi-hole/data/pihole/*
app-data/pi-hole/data/dnsmasq/*
!app-data/pi-hole/data/unbound

View File

@ -0,0 +1,24 @@
## DNS Over TLS, Simple ENCRYPTED recursive caching DNS, TCP port 853
## unbound.conf, original at https://calomel.org/unbound_dns.html
# tweaks by bartonbytes.com
server:
access-control: 127.0.0.0/8 allow
cache-max-ttl: 14400
cache-min-ttl: 600
do-tcp: yes
hide-identity: yes
hide-version: yes
interface: 127.0.0.1
minimal-responses: yes
prefetch: yes
qname-minimisation: yes
rrset-roundrobin: yes
ssl-upstream: yes
use-caps-for-id: yes
verbosity: 1
port: 5533
#
forward-zone:
name: "."
forward-addr: 194.242.2.3@853 # Mullvad primary
forward-addr: 193.19.108.3@853 # Mullvad secondary

View File

@ -1,6 +1,14 @@
version: "3.7"
services:
unbound:
image: "klutchell/unbound:latest"
volumes:
- ${APP_DATA_DIR}/data/unbound:/etc/unbound
networks:
default:
ipv4_address: $APP_UNBOUND_IP
server:
image: pihole/pihole
restart: on-failure
@ -14,6 +22,9 @@ services:
environment:
- VIRTUAL_HOST=${APP_DOMAIN}
- WEBPASSWORD=${APP_PASSWORD}
- PIHOLE_DNS=${APP_UNBOUND_IP}
depends_on:
- unbound
networks:
default:
ipv4_address: $APP_PI_HOLE_IP