Skip to content

Commit 3c8a6d1

Browse files
authored
Merge pull request #1173 from pi-hole/docker
Add note on Custom dnsmasq config files for Docker installations
2 parents 0c91725 + 04bb3c9 commit 3c8a6d1

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

docs/docker/configuration.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ Given the below `toml` formatted example from `pihole.toml`, we can translate th
3333
dnssec = true
3434
```
3535

36+
Array type configs should be delimited with `;`
37+
3638
!!! note
3739
All FTL settings that are set via environment variables effectively become read-only, meaning that you will not be able to change them via the web interface or CLI. This is to ensure a "single source of truth" on the config. If you later unset or remove an environment variable, then FTL will revert to the default value for that setting
3840

docs/docker/upgrading/v5-v6.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,17 @@ You would now set:
5858
FTLCONF_dns_revServers: 'true,192.168.0.0/24,192.168.0.1#53,lan'
5959
```
6060

61+
### Custom dnsmasq config files
62+
63+
By default, Pi-hole v6 no longer reads configuration files from `/etc/dnsmasq.d/`. If you want Pi-hole to read files from this location you should:
64+
65+
1. Mount the local folder containing the config files into `/etc/dnsmasq.d` into the container
66+
2. Set the environment variable `FTLCONF_misc_etc_dnsmasq_d: 'true'`
67+
68+
69+
If you only want to add a single/few `dnsmasq` config lines you can use the variable `FTLCONF_misc_dnsmasq_lines`. Each line should be separated with `;`
70+
71+
6172
### Removed Variables
6273

6374
The following variables can be removed without replacement, as they are no longer used:

0 commit comments

Comments
 (0)