The option --dhcp-script seems to be NOT implemented in the dnsmasq version 2.47 on Kamikaze as it is not doing anything... any clue about this?
-6 --dhcp-script=<path>
Whenever a new DHCP lease is created, or an old one destroyed, the executable specified by this option is run. <path> must be an absolute pathname, no PATH search occurs. The arguments to the process are "add", "old" or "del", the MAC address of the host, the IP address, and the hostname, if known. "add" means a lease has been created, "del" means it has been destroyed, "old" is a notification of an existing lease when dnsmasq starts or a change to MAC address or hostname of an existing lease (also, lease length or expiry and client-id, if leasefile-ro is set). If the MAC address is from a network type other than ethernet, it will have the network type prepended, eg "06-01:23:45:67:89:ab" for token ring. The process is run as root (assuming that dnsmasq was originally run as root) even if dnsmasq is configured to change UID to an unprivileged user.
As I have several wifi's spread on my organization, it would be great to signal every time certain MAC acquires an IP on the network in order to "locate" a person that moves across the many buildings around. An option like this would allow a program to keep a track of where the smart phone of this person is and ping it periodically to make it a reliable source of position.
I move a lot, and with something like this I could make the asterisk pbx to call me to a nearby phone when I move.