I run PiHole +DHCP at home but my ISP will from to time update the firmware in my modem and will re-enable the DHCP service on that.
Can anyone suggest a robust method of detecting the change/ that a competing DHCP is in operation ?
For more detail, I have to run PiHole in a service container
....
ExecStart={ path=/usr/bin/docker ; argv=/usr/bin/docker start -a pihole ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ;
ExecStartPost={ path=/usr/bin/docker ; argv=/usr/bin/docker exec pihole pihole -a enabledhcp 192.168.1.200 192.168.1.240 192.168.1.254 24
ExecStop={ path=/usr/bin/docker ; argv=/usr/bin/docker exec pihole pihole -a disabledhcp ; ignore_errors=yes ; start_time=[n/a] ; stop_tim
ExecStop={ path=/usr/bin/docker ; argv=/usr/bin/docker stop -t 2 pihole ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ;
so it seems to me that I might restart the pihole container regularly and add an execstartpre step to run a check and inhibit the enabledhcp action
so details of a check?