Hi all,
I have been struggling to do things with pihole and have tried many setups and keep hitting brick walls.
Not only with pihole but with many other linux setups.
Every time I find a "what sounds like a" good tutorial for doing anything it fails to work for me despite following step-by-step instructions.
It's so frustrating that its no wander that no one wants to use linux instead of the dreaded windows.
"Follow these instructions and everything will work perfectly!"
but never "If it fails follow these steps to diagnose and fix the issue."
I followed several different tutorials for Docker pihole setup.
I can log into the web page for pihole with no problems.
However despite having over 5M on my blocklist (now 800k for who knows what reason 5M disappeared). barely anything is being blocked.
I get a repeated alert message "Ignoring query from non-local network" and when I look on https://docs.pi-hole.net/ftldns/dnsmasq_warn/ there is no information on how to fix it
A work colleague advised me to run:
nslookup google.com 192.168.1.6
to see if the pihole is resolving things but all I receive is:
nslookup google.com 192.168.1.6
DNS request timed out.
timeout was 2 seconds.
Server: UnKnown
Address: 192.168.1.6
DNS request timed out.
timeout was 2 seconds.
*** Request to UnKnown timed-out
I checked my router and it is directing DNS lookup to my pihole ip address.
I used the startup script from the github pihole site
#!/bin/bash
# https://github.com/pi-hole/docker-pi-hole/blob/master/README.md
docker run -d \
--name pihole \
-e TZ=Australia/Darwin \
-e WEBPASSWORD=*IPutMyPasswordHere* \
-e SERVERIP=192.168.1.6 \
-v pihole:/etc/pihole \
-v dnsmasq:/etc/dnsmasq.d \
-p 80:80 \
-p 443:443 \
-p 8080:8080 \
-p 53:53/tcp \
-p 53:53/udp \
--restart=unless-stopped \
pihole/pihole
printf 'Starting up pihole container '
for i in $(seq 1 20); do
if [ "$(docker inspect -f "{{.State.Health.Status}}" pihole)" == "healthy" ] ; then
printf ' OK'
echo -e "\n$(docker logs pihole 2> /dev/null | grep 'password:') for your pi-hole: https://${IP}/admin/"
exit 0
else
sleep 3
printf '.'
fi
if [ $i -eq 20 ] ; then
echo -e "\nTimed out waiting for Pi-hole start, consult check your container logs for more info (\`docker lo> exit 1
fi
done;
Originally I just had pihole installed directly on my RPi2B but it required an update and I had a lot of other bloat and decided to do a clean install of Raspian lite 32bit. Afterwards I was no longer able to add blocklists and broke the install by adding them incorrectly.
So I reformatted the SD again and started again because there is no way to easily remove 1.5M broken blocklists.
This time I thought "Ok lets give Docker a go, that way if I break it instead of reformatting the SD card I can delete the Docker container and start again. Now Docker version is just as bad and more complicated and still doesn't work.
Can someone please help me to get this working?