Two Pi-hole DNS servers. Since upgrade to v6, DHCP on main unit no longer advertising 2nd DNS.

Please follow the below template, it will help us to help you!

If you are Experiencing issues with a Pi-hole install that has non-standard elements (e.g you are using nginx instead of lighttpd, or there is some other aspect of your install that is customised) - please use the Community Help category.

Expected Behaviour:

Pi-hole 6 with DHCP enable should have option to advertise at least two DNS servers.

Actual Behaviour:

Only one DNS server is advertise when both DNS servers are defined in: 05-failover.conf

DNS1 - Mini x86 w/Debian v11.11 – Pi-hole w/DHCP enabled
DNS2 - RaspberryPi 4 w/Raspberry Pi OS Lite (bookworm) – backup DNS
*Both machines running latest version of Pi-hole 6.

Since upgrade, main Pi-hole w/DHCP, is no longer advertising 2nd DNS to users. Second DNS only being used by PCs with Static IP that have both DNS define in networking and are only PCs with internet resolution when the main DNS was powered off for maintenance. PCs using DHCP only have DNS1 listed as their DNS servers.

I’ve checked 05-failover.conf to see if that was somehow removed but it’s present on the main DNS. The file still can be found in its location and both DNS listed.

Its content: dhcp-option=6,<DNS1_IP>,<DNS2_IP>

What’s changed or better yet, how to advertise both DNS servers to users when using DHCP on the main DNS1 server? Currently, it’s only advertising itself. This was working fine until the upgrade to Pi-hole v6 from v5.

Thank you.

Debug Token:

[Replace this text with the debug token provided from running pihole -d (or running the debug script through the web interface]

Pi-hole v6 is no longer storing its dnsmasq configuration details under /etc/dnsmasq.d/, to avoid conflicts with other tools writing to that directory.

But you can configure it to read that directory if you want to keep your custom configuration files, via misc.etc_dnsmasq_d.

Alternatively, if it is just one line, you can add that to misc.dnsmasq_lines under All settings » Miscellaneous.

All settings is available in Expert mode only.

See also Custom dnsmasq configs not loading.

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