☆ 3 r/homelab ·by Yusuf ·2026-10-12 Docker DNS fails for external domains but internal names work 1509 views Containers can reach other containers by name, but cannot resolve anything on the internet. Host resolves fine. Pi-hole is the host resolver. ⧉ Copy link⚑ Report
☆ 0 E Elise ·2026-10-12#1 Docker has its own embedded DNS. If you override dns in daemon.json, check whether the resolver is reachable from the container network. ⧉ Copy link⚑ Report
☆ 0 Y Yusuf ·2026-10-12#2 daemon.json points to the Pi-hole IP. From inside a container, pinging that IP works but DNS still times out. ⧉ Copy link⚑ Report
☆ 0 K Kei ·2026-10-12#3 add a second fallback such as 1.1.1.1, then docker restart. Also check that Pi-hole is not blocking the container's queries. Look at its query log while the failing lookup happens. ⧉ Copy link⚑ Report
3 replies