Installed PiHole on my RPi 4 as a Docker container.
Since my router doesn't support changing DNS servers, I've configured PiHole to enable the DHCP server, and disabled my router's DHCP server.
Used the docker-compose file, replacing ports with network_mode as suggested:
# 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"
network_mode: "host"
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
The admin panel is now accessible if I connect via the IP directly (192.168.0.97).
However, attempting to connect via http://pi.hole yields ERR_ADDRESS_INVALID.
I ran nslookup pi.hole
and got:
Server: UnKnown
Address: fd0c:fe43:3eb4:0:6ea0:b4ff:fef7:b710
*** UnKnown can't find pi.hole: Non-existent domain
Running nslookup pi.hole 192.168.0.97
yields:
Server: pi.hole
Address: 192.168.0.97
Name: pi.hole.lan
Addresses: fd0c:fe43:3eb4:0:f9ed:5669:1c20:fc1b
0.0.0.0
So it seems to me that there is some sort of IPv6 messing around occurring. But I cannot figure out how to fix that.
Furthermore, my device does appear as connected in the admin panel. The DHCP lease is listed, and some of my requests show up. Yet ads are not being blocked.
It's likely worth nothing that my Pi is connected via Ethernet cable to a router, which is connected via Ethernet cable to my actual modem (i.e. the Pi is connected to an access point, but not the modem itself).
Tricorder:
https://tricorder.pi-hole.net/JYr70sEr/
Any help appreciated!