I'm trying to set up Pi-hole to use Unbound as its upstream DNS server on my Raspberry Pi 4, but I'm having some trouble since I switched both services to run inside Docker containers. I'm using the host networking mode for all the containers, but it seems like they can't communicate properly anymore. They were working fine before switching to Docker. I've done some searching online and even checked with ChatGPT, but I haven't found a working solution. I have shared my Docker compose file and the Pi-hole FTL log for reference: [docker-compose.yaml](https://pastebin.com/w7himKqF), [Pi-hole_FTL.log](https://pastebin.com/ydN2r8YJ). Any suggestions or advice would be greatly appreciated!
1 Answer
Have you tried switching to bridge mode instead of host mode? Using the host network can be tricky since you need to get port bindings just right, like port 53 for DNS and making sure Unbound is set to use 5335 correctly. It's often easier to use bridge mode to avoid these complications.

If I switch to a bridged network, will I still be able to see individual clients in the Pi-hole logs instead of just one IP for all traffic?