Hi
I have 2 piholes on 192.168.3.3 and 192.168.3.4
.3 is running as a DHCP server and everything is fine, add following line
dhcp-option=6,192.168.3.3,192.168.3.4 in Settings >> all settings >> Misc >> misc.dnsmasq_lines
The 2nd DNS shows in ipconfig /all shows both IP addresses as expected but I repeatedly get the error Ignoring duplicate dhcp-option 6.
I remove the dhcp options line assuming its already set some where but the 2nd IP is no longer showing in ipconfig, cant see why I am getting the duplicate error.
Uploaded as
https://tricorder.pi-hole.net/67JV5S8N/
I found entries in /etc/resolv.conf referring to the 2nd DNS server removed this but still getting the error
Many Thanks
Your debug log shows you've enabled dhcp.multiDNS
.
[dhcp]
active = true ### CHANGED, default = false
(…)
multiDNS = true ### CHANGED, default = false
This will add a DHCP option 6
(dns-server
) line to your config, which conflicts with your custom configuration option:
dhcp-option=option:dns-server,0.0.0.0,0.0.0.0,0.0.0.0
To avoid that conflict, untick dhcp.multiDNS
, or run:
sudo pihole-FTL --config dhcp.multiDNS false
With regards to your custom configuration:
[misc]
dnsmasq_lines = [
"dhcp-option=6,192.168.3.3,192.168.3.4"
] ### CHANGED, default = []
As 192.168.3.3
is the IP of the Pi-hole machine that created the debug log, you could consider to write that as:
"dhcp-option=6,0.0.0.0,192.168.3.4,0.0.0.0"
mimicking the effect of dhcp.multiDNS
(where 0.0.0.0
means 'the machine's current IPv4').
Thankyou, this has stopped the errors coming in and I still have the 2 DNS servers listed