PiHole FTLCONF_dns_revServers

Please, how to specify multiple lines for conditional forwarders in the compose file?

    environment:
      # Set the appropriate timezone for your location (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), e.g:
      TZ: 'Europe/Prague'
      # Set a password to access the web interface. Not setting one will result in a random password being assigned
      FTLCONF_webserver_port: 8080
      FTLCONF_dns_revServers: 'true,192.168.1.0/24,192.168.1.4,lan'
      FTLCONF_dns_piholePTR: 'HOSTNAMEFQDN'

The following list contains all reverse servers you want to add. The expected format is one server per line in form of <enabled>,<ip-address>[/<prefix-len>],<server>[#<port>][,<domain>] . A valid config line could look like true,192.168.0.0/24,192.168.0.1,fritz.box

Depends on how you have the rest of the docker config.

Configuration

It is recommended that you use environment variables to configure the Pi-hole docker container (more details below), however if you are persisting your /etc/pihole directory, you may choose instead to set them via the web interface or by directly editing pihole.toml.

Array type configs should be delimited with ;.

FTLCONF_dns_revServers: 'true,192.168.1.0/24,192.168.1.4,lan;false,10.0.0.1/16,10.0.0.2'
1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.