DNS resolution from containers broken

Can anyone tell me why none of my containers are able to resolve DNS?

Truenas itself has no issue as I have configured my local DNS server (pihole) and it is able to resolve internal and external URL with no problem.

Running the latest version ElectricEel-24.10.1

User and group set to zero to account for nginx permission problems with Truenas default user

And always getting:

Your additional info doesnt appear to have come through in your post. DNS in docker containers is a bit different. It is handled separately from regular old host dns.

i believe I was able to resolve the issue by created a static route between the containers at 172.16.3.* and 172.16.2.*

I was able to pull a cert in any case

Containers in separate networks are by default not allowed to talk to each other. You’re short circuiting an isolation mechanism.

yes, i removed the route and its still working. dns wasnt resolving for whatever reason