I guess I am missing something, but I cannot get pihole to utilize the upstream dns server from the environment variable in my docker compose.
What am I doing wrong?
First this is on a QNAP server using container station.
Here is the environment section of the compose file.
when i connect to the container and look at /etc/pihole/setupVars.conf I see:
I have to set it in the gui on every restart.
Oh, i'll create another thread for this but
teleporter doesn't save the upstream dns server info either
That won't work.
PIHOLE_DNS_ that would accept a list of your desired DNS upstreams - see Pi-hole's Docker documentation:
|IPs delimited by
|Upstream DNS server(s) for Pi-hole to forward queries to, separated by a semicolon (supports non-standard ports with
#[port number]) e.g
127.0.0.1#5053;126.96.36.199;188.8.131.52 (supports Docker service names and links instead of IPs) e.g
upstream1 are the service names of or links to docker services. Note: The existence of this environment variable assumes this as the sole management of upstream DNS. Upstream DNS added via the web interface will be overwritten on container restart/recreation
This sounds like you didn't mount the necessary directories for your container.
Check your container's respective configuration against Pi-hole's sample configuration for Docker.
You should also consider to set the recommended
FTLCONF_LOCAL_IPV4 to your Docker host's IP.