<div dir="ltr">Hello,<br><div><br>I'm doing some firmware-related work and am using a --dhcp-hostsdir setup to test several devices on my LAN. This is working fine, but I appear to have hit the limits of my dnsmasq-fu when attempting to *toggle* the DHCP options for a particular end host.<br><br>Namely, (1) the global config sets enable-tftp and (2) the hostsdir config for the target device starts as "{mac},{ip},set:green". During my test I (3) update it asynchronously to "{mac},{ip},set:red" and (4) hit dnsmasq with SIGHUP. According to my understanding, this will cause dnsmasq to clear its host cache and reload the hostsdir configs.<br><br>The only remaining question, then, is how to specify individual dhcp-option disablement for the target. Specifically, for "red" tags, I tried the following configuration to override the global tftp-enable setting:<br><br>dhcp-option=tag:red,option:tftp-server,""<br>dhcp-option=tag:red,option:tftp-server-address,""<br>dhcp-option=tag:red,option:boot-file-size,""<br>dhcp-option=tag:red,option:bootfile-name,""<br><br>Unfortunately, this approach seems to be flawed as the service complains that empty string is an invalid option and never comes up.<br><br>Is there a common "disable" flag for scenarios like this? If so, I could not find it in the docs. If not, what approach is recommended for these kinds of per-host override situations?</div><div><br></div><div>Thanks!</div><div>~br<br></div></div>