Latest FTL Update broke DHCP static address configuration

I upgraded pi-hole to the latest development HEAD and it seems that the dnsmasq upgrade in FTL does not work as expected.

  • Core vDev (development, d80259ee)
  • FTL vDev (development, c04fa584)
  • Web interface vDev (development, 943a2e51)

The update did stall after pi-hole re-enable FTL. I manually tried to restart FTL but always got this error in the logs:

Dec 22 20:16:58 pi-hole dnsmasq[34591]: DHCP host has multiple names at line 87 of /etc/pihole/dnsmasq.conf
Dec 22 20:16:58 pi-hole dnsmasq[34591]: FAILED to start up

Static DHCP configurations don't work anymore. I had to remove all static DHCP hosts from pihole.tomlin order to get it working again.

Also, static addresses cannot be added anymore. trying to save the newly added results in this pop-up.

I got the same error.
I can troubleshoot tomorrow...

This is a new check introduced in dnsmasq v2.91test2 we added to our development branches. Adding multiple names was never supported. Even though it was allowed, the behavior was undefined. The dnsmasq mailing list has further details if would like to see them.

I guess the ,infinite at the end is misinterpreted as duplicated host name.

edit This is the offending commit:
https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=6c9bc0156a8d36d56735831cb81e786d628ed73e

Just tested it and indeed removing ,infinite does not trigger the error anymore.

Thanks! Already reported this to the dnsmasq mailing list :slight_smile:

1 Like

Just additional info:

Even without ,infinite You can only add lines one by one.

I can not remove ,infinite. well i can, but it always adds itself back.
How to fix this?

Until we get the proper fix from upstream, please try editing /etc/pihole/pihole.toml directly followed by a service pihole-FTL restart

do i need to remove all static ip hosts?

No, could you show me the output of

sudo pihole-FTL --config dhcp.hosts

?

If there is anything privacy-related in there, feel free to send it to me via direct message, instead.

Removing items (clearing the list totally) and adding items one by one without ,infinite seems to work as a workaround.

Added few items via WEB gui and verified:

PiMan@Pi-Monitor:~ $ sudo pihole-FTL --config dhcp.hosts
[ 90:13:da:xx:xx:xx,192.168.xx.xx,HomeyPro, 5C:4E:EE:xx:xx:xx,192.168.xx.xx,Sonoff_Cam, ac:f1:08:xx:xx:xx,192.168.xx.xx,LG_SL10YG, b0:4a:39:xx:xx:xx,192.168.xx.xx,Roborock_S5Max, 04:39:26:xx:xx:xx,192.168.xx.xx,Android-TV, 28:C2:1F:xx:xx:xx,192.168.xx.xx,ZenWiFi_Sovrum ]

(Output of command on one line)

The fix has just been merged into development

1 Like

Can confirm that it is fixed.