Hi, so I'm having an issue where if I restart my Pi-hole container, or reboot the host machine, Conditional Forwarding stops working. To fix it, I have to log in using the IP, disable it, then re-enable it and then it starts working again. Anyone know what may be causing this?
Edit: I found that even if I destroy the container and associated volumes and reload from the docker compose below, Conditional Forwarding does not work. The REV_SERVER environment variables that I've supplied are shown in the WebUI and Conditional Forwarding is ticked/enabled, however it does not work. I have to disable, save, re-enable, re-enter the same exact info and then hit save, and then it works. It's almost as if Pi-hole is not starting Conditional Forwarding at container startup. The REV_SERVER environment variables are being picked up, because they’re shown in the WebUI, so I’m not sure why it’s not working.
Here is my docker-compose file:
version: "3.5" services: pihole: image: pihole/pihole:latest container_name: pihole hostname: ****** networks: pihole: ipv4_address: 172.20.0.2 dns: - 127.0.0.1 - 18.104.22.168 ports: - target: 53 published: 53 protocol: tcp - target: 53 published: 53 protocol: udp - target: 67 published: 67 protocol: udp - target: 80 published: 80 protocol: tcp - target: 443 published: 443 protocol: tcp environment: - "TZ=America/New_York" - "PROXY_LOCATION=pihole" - "VIRTUAL_PORT=80" - "PIHOLE_DNS_=172.20.0.3#5053;172.20.0.3#5053" - "WEBPASSWORD=***************" - "ServerIP=192.168.1.30" - "DNS_BOGUS_PRIV=TRUE" - "DNS_FQDN_REQUIRED=TRUE" - "DNSSEC=TRUE" - "REV_SERVER=TRUE" - "REV_SERVER_TARGET=192.168.1.1" - "REV_SERVER_DOMAIN=*********.lan" - "REV_SERVER_CIDR=192.168.1.0/24" - "TEMPERATUREUNIT=f" - "WEBUIBOXEDLAYOUT=boxed" volumes: - "pihole:/etc/pihole/" - "dnsmasq:/etc/dnsmasq.d/" restart: always cloudflared: image: crazymax/cloudflared:latest container_name: cloudflared hostname: cloudflared networks: pihole: ipv4_address: 172.20.0.3 environment: - "TZ=America/New_York" - "TUNNEL_DNS_UPSTREAM=https://22.214.171.124/dns-query,https://126.96.36.199/dns-query" restart: always networks: pihole: name: pihole ipam: config: - subnet: 172.20.0.0/24 volumes: pihole: name: pihole dnsmasq: name: dnsmasq