I installed Pi-hole on Raspberry Pi. My client is shown as connected but unable to block domains and are also not shown in logs. I have added Pi address as DNS server on my macbook.
I had ngnix setup which I have stopped and did fresh install of Pi-hole.
Expected Behaviour:
When I added google.com to blacklist to check if things are working. It shouldn't have loaded in browser
It appears the client is not using Pi-hole for DNS.
From the same client that you believe should be connected to the Pi-Hole for DNS, from the command prompt or terminal on that client (and not via ssh or Putty to the Pi), what is the output of
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: 'Asia/Kolkata'
WEBPASSWORD: 'example_password'
# 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