Please follow the below template, it will help us to help you!
If you are Experiencing issues with a Pi-hole install that has non-standard elements (e.g you are using nginx
instead of lighttpd
, or there is some other aspect of your install that is customised) - please use the Community Help category.
Expected Behaviour:
After the installation and configuration my pc should use PiHole as the DNS-Server as using the command "ipconfig /all" shows the local ip of my pihole server.
Actual Behaviour:
When running "nslookup ads.google.com" it is using fritz.box as the server.
I should add my configuration for PiHole:
version: "3"
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
services:
pihole:
container_name: PiHole
image: pihole/pihole:latest
# For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp" # Only required if you are using Pi-hole as your DHCP server
- "8080:80/tcp"
environment:
TZ: Europe/Berlin
WEBPASSWORD: *somepassword*s
# Volumes store your data between container upgrades
volumes:
- ./etc/pihole:/etc/pihole
- ./etc/dnsmasq.d:/etc/dnsmasq.d
- ./etc/resolv.conf:/etc/resolv.conf
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
dns:
- 127.0.0.1
- 1.1.1.1
cap_add:
- NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
restart: unless-stopped
I'm really unsure which aspects of my docker-compose.yml are necessary. I just tried a few things I found on the internet.