Can't do multi-NIC DHCP w/ new version

Pi-hole never implemented the ability to have DHCP on more than one NIC interface. Thankfully Pi-hole is based on dnsmasq I was able to enter custom setting in file(/etc/dnsmasq.d/99-custom-settings.conf) that dnsmasq would take under Pi-hole and Pi-hole wouldn't override. Even though I had to do that manually instead of the GUI, it still worked.
With the new version it looks like all dnsmasq files are consolidated into /etc/pihole/dnsmasq.conf that is auto-generated by Pi-hole, which overrides any manual settings.
If Pi-hole isn't interest in implementing multi-NIC DHCP, is there a way to still add manual/custom DHCP settings, especially for multi-NIC DHCP?

Environment:
VM - VMware ESXi
OS - Rocky-Linux 9.4
Warning messages:
DNSMASQ_WARN - no address range available for DHCP request via eth0
DNSMASQ_WARN - no address range available for DHCP request via eth1

Expected Behaviour:

(/etc/dnsmasq.d/99-custom-settings.conf)
dhcp-range=eth0,192.168.0.201,192.168.0.251,24h
dhcp-option=eth0,option:router,192.168.0.1
dhcp-range=eth1,192.168.1.201,192.168.1.251,24h
dhcp-option=eth1,option:router,192.168.1.1
dhcp-range=eth2,192.168.2.201,192.168.2.251,24h
dhcp-option=eth2,option:router,192.168.2.1

dhcp-option=eth0,option:ntp-server,192.168.0.11,192.168.0.12,192.168.0.13
dhcp-option=eth1,option:ntp-server,192.168.1.11,192.168.1.12,192.168.1.13
dhcp-option=eth2,option:ntp-server,192.168.2.11,192.168.2.12,192.168.2.13

Actual Behaviour:

(/etc/pihole/dnsmasq.conf)
dhcp-range=192.168.2.201,192.168.2.251,24h
dhcp-option=option:router,192.168.2.1

dhcp-option=option:ntp-server,0.0.0.0

This is the default setting, but you can change it. Open up your file /etc/pihole/pihole.toml and edit the following section so the option is set to true.

  # Should FTL load additional dnsmasq configuration files from /etc/dnsmasq.d/?
  etc_dnsmasq_d = true ### CHANGED, default = false

Then restart FTL with the following, and your custom dnsmasq files will be active again.

sudo service pihole-FTL restart

Thanks JFB, that did the trick. I guess I have some extra reading to do :slight_smile:

P.S. Any chance of Pi-hole adding support for multi-NIC DHCP and would love certificate local CA feature as well.

There are plenty of ways to set up a CA without pi-hole. That is beyond the scope of what pi-hole is, a DNS blocker.

There are plenty of ways to setup DNS and DHCP too.

You just completely ignored the second half of my reply, didn't you?

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