Docker, REV_SERVER_CIDR and multiple CIDRs

Hi,

I'm running pihole via docker and am trying to work around the GUI limitations documented here: More than one "Conditional Forwarding" entry in the GUI - #20 by razvani

Is there a way to have the REV_SERVER_CIDR variable have multiple subnets passed to configure conditional forwarding for several networks?

thanks

You can add a file to the /etc/dnsmasq.d/ directory with the entries that you would like to have. There should be a file in there now with the rev-server format for a Conditional Forwarder added via envvar or web interface.

Add a new file with a number that is 1 higher than the generated one and duplicate the format. That directory should be a volume mount to preserve the files on container start/restart.

1 Like