chriscrowe / docker-pihole-unbound

Run Pi-Hole + Unbound on Docker
1.04k stars 270 forks source link

Unbound/DNS not working for "only local request" #229

Open joppez opened 7 months ago

joppez commented 7 months ago

Thank you very much for this tool. I'm running the one-container version within Docker.

I have one problem. When I use the dns setting within pihole "Allow only local requests" in stead off "Respond only on interface eth0", I get a DNS-error for every external website I visit. When I choose for the eth0-option, everything works fine.

Does anyone know a reason for this?

MaHl111 commented 7 months ago

That's because Pihole and Unbound are run in docker, which means their "local network" is the virtual network provided by docker. If you use "Allow only local requests" would set Pihole to only forward request from other docker containers found on the same virtual network your Pihole is at.