How to configure a 2nd local DNS server for my DHCP on my Pihole V6

Hey,
i have set up 2 Piholes with 2 DHCPs with their own DHCP Ranges.
Everything works fine, only problem is now that each DHCP only is setting their own DNS server as DNS.

I know its possible to set up a 2nd DNS Server entry on each DHCP, but i dont know how to do ths on V6. SInce everything is now in one config file, "pihole.toml", it must be there somwhere.

Old topics said this:

Here's an answer (if you're still looking):

sudo nano /etc/dnsmasq.d/02-pihole-dhcp.conf

dhcp-option=6,Pi-holeIP,SecondaryDNSIP

How would this be for the toml config? couldnt find a possible spot
Thanks!

In All Settings - Miscellaneous settings - misc.etc_dnsmasq_d
Should FTL load additional dnsmasq configuration files from /etc/dnsmasq.d/?
Enable
Then add your file in etc/dnsmasq.d/ (I use 90-MySettings.conf) with your additional settings such as:
dhcp-option=6,Pi-hole1IP,Pi-hole2IP

Didnt work for me...

Am i missing smth else important?

Please upload a debug log and post just the token URL that is generated after the log is uploaded by running the following command from the Pi-hole host terminal:

pihole -d

Did you reboot? It worked for me here.

Hey,

Pihole Instance 1: https://tricorder.pi-hole.net/bJmQUQT5/ (192.168.178.3)

Pihole Instance 2: https://tricorder.pi-hole.net/kPvmUHia/ (192.168.178.4)

I had followed @Moto s config and had configured my own .conf file with both dns servers mentioned above.

Yea i did, did not help. It was still always the only one dns server in the dhcp.

If it is just a single config line you want to add, you can enter this via
All settings > Miscellaneous > misc.dnsmasq_lines

1 Like

I can only recommend what @yubiuser suggested. Both your debug logs contain:

*** [ DIAGNOSING ]: contents of /etc/dnsmasq.d
/etc/dnsmasq.d does not exist.

which explains why it doesn't work.

@yubiuser @DL6ER
Hey thanks both, i was hoping it would be that easy since its all in one config file now!

I guess it would be then

dhcp-option=6,192.168.178.3,192.168.178.4

?

Yes, this should work

Thanks, i will try when im home tn!

Works, thanks!