I have the official pihole image, and a custom unbound container running in a on a host @ 192.168.1.77.
Pihole uses port 53, and unbound 5335.
I have a second bare metal pihole and unbound install at 192.168.1.87.
Both unbound instances work fine and can be queried by the bare metal pihole instance.
The docker pihole can query the bare metal unbound just fine. However the docker pihole times out when trying to reach 192.168.1.77:5335
From the pihole console I can ping 192.168.1.77:5335 just fine and get a response, but as soon as I run dig it times out.
This feels like a docker networking issue. I tried to use the unbound docker host name as an upstream dns server but that is not allowed. I tried running unbound with host network permissions with no change.
I am not sure why my docker pihole can ping the host but not dig and if there is a way of resolving this.
Any help would be very much appreciated.
EDIT: with pihole using host networking it can connect fine, but as I don’t use DHCP I would prefer not to have to do this. Any tips?