Containers pihole DNS issue

I need a bit of help to understand what i’m doing wrong in my setup, for sure missing something obvious.

Problem:

i’m not able to use pihole on other containers.

Setup info:

I have a Pihole container running on the same host ip, serving flawlessy every device in my net (router dns point to him).
Some local DNS are set set there to point on my services just locally, because i take advantage of a domain with free wildcard renewed annually where i work.
Truenas is configured as above


(nothing fancy)

I’m aware that every container basically is isolated from the other if they don’t are in the same network, so far so good, but for some service

  • uptimekuma (not reach service to check)
  • wgeasy (i can reach service only via ip)

this is quite annoying.
I have tried to

  • create a network
  • add those service in the same network with pihole

but the issue persists.

any advice?

i figured it out :smile:
if can be usefull for anyone, i was just missing to specify the pihole address as DNS into the yaml:

..
    networks:
      - shared_network
    dns:
      - 172.25.0.2

networks:
  shared_network:
    external: true   

pihole have a reserved ip

...
    networks:
      shared_network:
        ipv4_address: 172.25.0.2
2 Likes