I have my Pihole running in a container. Everything works as expected for years and I had a look at the logs. There is one repeating warning
2026-04-28 11:28:54.400 WARNING dnsmasq: Ignoring duplicate dhcp-option 6
The duplication comes from the fact that there is a default set of DNS provided by Pihole itself (from dnsmasq.conf, similar entries in pihole.toml):
# Advertise the DNS server multiple times to work around
# issues with some clients adding their own servers if only
# one DNS server is advertised by the DHCP server.
dhcp-option=option:dns-server,0.0.0.0,0.0.0.0,0.0.0.0
dhcp-option=option6:dns-server,[::],[::],[fd00::],[fd00::],[fe80::],[fe80::]
and the further down
#### Additional user configuration - START ####
all-servers
dhcp-option=6,192.168.10.2,192.168.10.102
#### Additional user configuration - END ####
The triple-zero configuration is added when selecting the multiple advertisement, which is OK.
In the past I set up the extra dhcp-option to send 192.168.10.2 and 192.168.10.102 as DNS servers, 192.168.10.102 being an extra Pihole for redundancy. After much thought I do not need it anymore and would be happy with what Pihole sends by defualy above (which in practice will be its own IP)
My problem: I cannot find where this dhcp-option is set! I know it is mine, as well as the all-servers option to send request to upstream servers in parallel.
I am desperate, here is where I looked.
First, the relevant part of the docker compose file:
volumes:
- /etc/localtime:/etc/localtime:ro
- ./etc-pihole:/etc/pihole
- ./etc-dnsmasq-d:/etc/dnsmasq.d
Within these volumes I am looking for either of these settings (using all-servers below, as it is more unique):
root@srv /e/d/c/pihole# grep -r all-servers *
etc-pihole/dnsmasq.conf:all-servers
etc-pihole/config_backups/pihole.toml.4: "all-servers",
etc-pihole/config_backups/pihole.toml.15: "all-servers",
etc-pihole/config_backups/pihole.toml.12: "all-servers",
etc-pihole/config_backups/pihole.toml.8: "all-servers",
etc-pihole/config_backups/pihole.toml.11: "all-servers",
etc-pihole/config_backups/pihole.toml.5: "all-servers",
etc-pihole/config_backups/pihole.toml.3: # "all-servers",
etc-pihole/config_backups/pihole.toml.7: "all-servers",
etc-pihole/config_backups/pihole.toml.6: "all-servers",
etc-pihole/config_backups/pihole.toml.9: "all-servers",
etc-pihole/config_backups/pihole.toml.2: # "all-servers",
etc-pihole/config_backups/pihole.toml.14: "all-servers",
etc-pihole/config_backups/pihole.toml.13: "all-servers",
etc-pihole/config_backups/pihole.toml.1: # "all-servers",
etc-pihole/config_backups/pihole.toml.10: "all-servers",
etc-pihole/pihole.toml: "all-servers",
For reference, the presence of the entries in the files referred above:
root@srv /e/d/c/p/etc-pihole# grep -C 5 all-servers dnsmasq.conf
# replies to ANY queries can be large) this defangs such attacks, whilst still supporting the
# one remaining possible use of ANY queries. See RFC 8482 para 4.3 for details.
filter-rr=ANY
#### Additional user configuration - START ####
all-servers
dhcp-option=6,192.168.10.2,192.168.10.102
#### Additional user configuration - END ####
root@srv /e/d/c/p/etc-pihole# grep -C 5 all-servers pihole.toml
# "address=/example.net/192.168.0.3" ]
#
# Allowed values are:
# Array of valid dnsmasq config line options
dnsmasq_lines = [
"all-servers",
"dhcp-option=6,192.168.10.2,192.168.10.102"
] ### CHANGED, default = []
# Log additional information about queries and replies to pihole.log
#
I am really hopeless - where can these settings hide??