Use router for dns resolving

This commit is contained in:
Isaac Shoebottom 2024-08-09 00:45:31 -03:00
parent 37df4a3573
commit b19e997ceb

View File

@ -4,7 +4,7 @@ version: "3"
services: services:
pihole: pihole:
container_name: pihole container_name: pihole
image: cbcrowe/pihole-unbound:latest image: pihole/pihole:latest
# For DHCP it is recommended to remove these ports and instead add: network_mode: "host" # For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
ports: ports:
- "53:53/tcp" - "53:53/tcp"
@ -14,7 +14,7 @@ services:
environment: environment:
TZ: 'America/Moncton' TZ: 'America/Moncton'
FTLCONF_LOCAL_IPV4: '192.168.2.128' FTLCONF_LOCAL_IPV4: '192.168.2.128'
PIHOLE_DNS_: "127.0.0.1#5335" PIHOLE_DNS_: "192.168.2.1#53"
DNSSEC: "true" DNSSEC: "true"
DNSMASQ_LISTENING: "single" DNSMASQ_LISTENING: "single"
# Volumes store your data between container upgrades # Volumes store your data between container upgrades