Skip to content
DnsLister Forum

Where domain hunters compare notes

Trying to get Pihole working in docker and showing IP addresses of clients

Been at this for hours. Unfamiliar with docker and pi hole.

Setup pi hole in docker. Works fine except all clients are localhost.

Router DNS is set to IP of docker server.

Discovered Host networking mode of docker and enabled it. Restarted, no difference

Intalled Ubuntu on virtual box, and pi hole. Shows ip addresses of each client.

services: pihole: container_name: pihole-host image: pihole/pihole:latest restart: unless-stopped network_mode: host environment: TZ: FTLCONF_LOCAL_IPV4: 192.168.1.73 PIHOLE_DNS_: 1.1.1.1,9.9.9.9 FTLCONF_webserver_port: 8090 DNSMASQ_LISTENING: local volumes: - ./etc-pihole:/etc/pihole - ./etc-dnsmasq.d:/etc/dnsmasq.d cap_add: - NET_ADMIN 

What am I doing wrong? Latest version of docker desktop. Thank you!

Source: r/pihole · by /u/lighthouse638

Leave a Reply

Your email address will not be published. Required fields are marked *