I have Pi-hole set up and running out of Docker. I can resolve to the web GUI, I can set the DNS locally and have it provide data (Queries, Blocks, etc) but whenever I try to configure a different device to use the Pi-Hole Server as DNS, I cannot connect to the internet. All my devices on my network lose internet access when I set the router DNS to the Pi-Hole address as well.
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:
Network Devices being able to Connect to my Pi-hole's DNS Server and block ads.
Actual Behaviour:
Devices connecting to my Pi-hole DNS lose internet connection.
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
- "80:80/tcp"
environment:
TZ: 'America/Chicago'
# WEBPASSWORD: 'set a secure password here or it will be random'
# Volumes store your data between container upgrades
volumes:
- './etc-pihole:/etc/pihole'
- './etc-dnsmasq.d:/etc/dnsmasq.d'
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
cap_add:
- NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
restart: unless-stopped
Your docker-compose looks inconspicous.
You could consider to also set the recommended FTLCONF_LOCAL_IPV4, but it's not likely that its current absence would contribute to your observation.
Using nslookup to analyse your issue is a good approach.
However:
That output of yours may suggest that the client that ran the nslookup command would not have used Pi-hole for that DNS request.
I can't tell for sure, since the output seems truncated, and it doesn't contain the exact command itself.
Let's investigate that further:
From a client that you expect to use Pi-hole for DNS, what's the output of the following commands?
nslookup pi.hole
nslookup flurry.com
Please share the complete outpout, preferably as text.
Also, please provide a fresh debug token - your previous one has expired.
C:\Users\adeng>nslookup pi.hole
DNS request timed out.
timeout was 2 seconds.
Server: UnKnown
Address: 172.16.1.146
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
*** Request to UnKnown timed-out
C:\Users\adeng>nslookup flurry.com
DNS request timed out.
timeout was 2 seconds.
Server: UnKnown
Address: 172.16.1.146
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
*** Request to UnKnown timed-out