Hi,
I’m running pi-hole, sonarr, radarr, nzbget, and am pulling my hair out trying to figure out how to modify DNS settings for my Radarr / Sonarr containers to use my pi-hole DNS server - which is another container running on the same host.
Radarr / Sonarr are running on mono using the mono baseimage (lsiobase/ubuntu:xenial). The s6 overlay in the mono container makes troubleshooting harder; I’ve tried passing in an alternate resolv.conf file and also setting dns environment variables via docker-compose, both without success. Even when I attempt to point the DNS to an external IP address (e.g. 1.1.1.1) it still fails…
Any ideas how I can successfully update DNS settings for these containers?
Other containers that aren’t using mono are working fine - I had the same issue with the nzbgetbut I was able to pass an updated resolv.conf file (via docker-compose.yml) to point DNS to the Docker host interface (172.17.0.1) which works.
Here’s the docker-compose.yml I’m using:
-------
version: '2'
services:
radarr:
image: linuxserver/radarr
container_name: radarr
volumes:
- /etc/localtime:/etc/localtime:ro
- ./config/config:/config
- ./config/downloads:/downloads
- ./config/movie:/movies
- './config/general/config/resolv.conf:/etc/resolv.conf'
environment:
- TZ=xxxx
- PUID=0
- PGID=101
dns: 1.1.1.1
ports:
- 7878:7878
-------